projects
/
lttng-ci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LAVA: Upload results to obj.internal.efficios.com
[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 162a7c47af1426a5f5a662749f71fe9b0d7272f4..6ad7a8c10cd8a315bd19f7b39c75badd24962786 100644
(file)
--- a/
scripts/system-tests/check-build-needs.sh
+++ b/
scripts/system-tests/check-build-needs.sh
@@
-27,15
+27,35
@@
if [ $? -ne 0 ]; then
NEED_MODULES_BUILD=1
fi
NEED_MODULES_BUILD=1
fi
+$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.
+ NEED_MODULES_BUILD=1
+fi
+
$SSH_COMMAND "$STORAGE_USER@$STORAGE_HOST" ls "$STORAGE_LTTNG_MODULES"
if [ $? -ne 0 ]; then
NEED_MODULES_BUILD=1
fi
$SSH_COMMAND "$STORAGE_USER@$STORAGE_HOST" ls "$STORAGE_LTTNG_MODULES"
if [ $? -ne 0 ]; then
NEED_MODULES_BUILD=1
fi
+
+$S3_COMMAND info "s3://$S3_STORAGE_LTTNG_MODULES"
+if [ $? -ne 0 ]; then
+ NEED_MODULES_BUILD=1
+fi
+
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
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
+ 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
@@
-44,7
+64,8
@@
if [ $NEED_MODULES_BUILD -eq 1 ] || [ $NEED_KERNEL_BUILD -eq 1 ] ; then
make --directory="$LINUX_PATH" kvmconfig
fi
make --directory="$LINUX_PATH" kvmconfig
fi
- make --directory="$LINUX_PATH" modules_prepare
+ # Embed everything
+ make --directory="$LINUX_PATH" localyesconfig
fi
#We create files to specify what needs to be built for the subsequent build steps
fi
#We create files to specify what needs to be built for the subsequent build steps
This page took
0.022838 seconds
and
4
git commands to generate.