Make CI tests compatible with vanilla kernel tree

This is required to migrate kernel-patches CI to use this code
instead of fork
This commit is contained in:
Sergei Iudin
2021-08-10 19:20:58 -07:00
committed by Andrii Nakryiko
parent 64f027efda
commit 1778e0b1bd
4 changed files with 37 additions and 16 deletions

View File

@@ -4,17 +4,18 @@ set -eu
source $(cd $(dirname $0) && pwd)/helpers.sh
REPO_PATH=$1
REPO_PATH=${1:-}
${VMTEST_ROOT}/checkout_latest_kernel.sh ${REPO_PATH}
cd ${REPO_PATH}
if [[ ! -z "$REPO_PATH" ]]; then
${VMTEST_ROOT}/checkout_latest_kernel.sh ${REPO_PATH}
cd ${REPO_PATH}
fi
if [[ "${KERNEL}" = 'LATEST' ]]; then
travis_fold start build_kernel "Kernel build"
cp ${VMTEST_ROOT}/configs/latest.config .config
make -j $((4*$(nproc))) olddefconfig all >/dev/null
travis_fold end build_kernel
fi