projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Partial revert of 35b46f08b27c975edad28479469459155d32aea5
[lttng-ci.git]
/
scripts
/
system-tests
/
check-build-needs.sh
diff --git
a/scripts/system-tests/check-build-needs.sh
b/scripts/system-tests/check-build-needs.sh
index 21acde43cc7a2f1f3fd3eec4ab688f4e784d4653..cf51ab2ace0df6a14443ad910c5a4fd642bea679 100644
(file)
--- a/
scripts/system-tests/check-build-needs.sh
+++ b/
scripts/system-tests/check-build-needs.sh
@@
-27,7
+27,7
@@
if [ $? -ne 0 ]; then
NEED_MODULES_BUILD=1
fi
NEED_MODULES_BUILD=1
fi
-$S3_COMMAND info "$S3_STORAGE_KERNEL_IMAGE"
+$S3_COMMAND info "
s3://
$S3_STORAGE_KERNEL_IMAGE"
if [ $? -ne 0 ]; then
NEED_KERNEL_BUILD=1
# We need to build the lttng modules if the kernel has changed.
if [ $? -ne 0 ]; then
NEED_KERNEL_BUILD=1
# We need to build the lttng modules if the kernel has changed.
@@
-39,7
+39,7
@@
if [ $? -ne 0 ]; then
NEED_MODULES_BUILD=1
fi
NEED_MODULES_BUILD=1
fi
-$S3_COMMAND info "$S3_STORAGE_LTTNG_MODULES"
+$S3_COMMAND info "
s3://
$S3_STORAGE_LTTNG_MODULES"
if [ $? -ne 0 ]; then
NEED_MODULES_BUILD=1
fi
if [ $? -ne 0 ]; then
NEED_MODULES_BUILD=1
fi
@@
-49,6
+49,13
@@
set -e
# We need to fetch the kernel source and lttng-modules to build either the
# kernel or modules
if [ $NEED_MODULES_BUILD -eq 1 ] || [ $NEED_KERNEL_BUILD -eq 1 ] ; then
# We need to fetch the kernel source and lttng-modules to build either the
# kernel or modules
if [ $NEED_MODULES_BUILD -eq 1 ] || [ $NEED_KERNEL_BUILD -eq 1 ] ; then
+ mkdir -p "$LINUX_PATH"
+ pushd "$LINUX_PATH"
+ git init
+ git remote add origin "$KGITREPO"
+ git fetch --depth 1 origin "$KERNEL_COMMIT_ID"
+ git checkout FETCH_HEAD
+ popd
cp src/lttng-ci/lava/kernel/vanilla/x86_64_server.config "$LINUX_PATH/.config"
make --directory="$LINUX_PATH" olddefconfig
cp src/lttng-ci/lava/kernel/vanilla/x86_64_server.config "$LINUX_PATH/.config"
make --directory="$LINUX_PATH" olddefconfig
This page took
0.022464 seconds
and
4
git commands to generate.