Fix: system-tests: kvmconfig is deprecated
[lttng-ci.git] / scripts / system-tests / check-build-needs.sh
index 6602d398f25586ca34d2f5e1ee47ecc27b23b68a..0c82007ce9a7adf4d725f4949fcce8c1629df0a9 100644 (file)
@@ -49,12 +49,19 @@ 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
 
   if [ $BUILD_DEVICE = 'kvm' ] ; then
-    make --directory="$LINUX_PATH" kvmconfig
+    make --directory="$LINUX_PATH" kvm_guest.config
   fi
 
   make --directory="$LINUX_PATH" modules_prepare
This page took 0.022676 seconds and 4 git commands to generate.