LAVA: get linux modules and embed them in lttng-modules tarball
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 30 Nov 2018 21:07:48 +0000 (16:07 -0500)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 30 Nov 2018 21:07:48 +0000 (16:07 -0500)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
scripts/system-tests/build-modules.sh

index 42c8b92a61db911ae8321641de713b06964d2302..1db8f552523986f76212ca07dce25b8eb6e80ca4 100644 (file)
@@ -19,6 +19,14 @@ echo 'So we build them against the kernel'
 
 $SCP_COMMAND "$STORAGE_USER@$STORAGE_HOST:$STORAGE_KERNEL_MODULE_SYMVERS" "$LINUX_PATH/Module.symvers"
 
+$S3_COMMAND get "s3://"$S3_STORAGE_LINUX_MODULES/$KERNEL_COMMIT_ID.linux.modules.tar.gz"
+
+# Extract the linux modules to MODULES_INSTALL_FOLDER.
+# The resulting tarball will contain both lttng-modules and linux modules needed
+# for testing
+
+tar -xvzf $KERNEL_COMMIT_ID.linux.modules.tar.gz -C "$MODULES_INSTALL_FOLDER"
+
 KERNELDIR="$LINUX_PATH" make -j"$NPROC" --directory="$LTTNG_MODULES_PATH"
 
 KERNELDIR="$LINUX_PATH" make -j"$NPROC" --directory="$LTTNG_MODULES_PATH" modules_install INSTALL_MOD_PATH="$MODULES_INSTALL_FOLDER"
This page took 0.025287 seconds and 4 git commands to generate.