mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-12 19:49:07 +08:00
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:
committed by
Andrii Nakryiko
parent
64f027efda
commit
1778e0b1bd
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user