mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-28 12:19:07 +08:00
Select the current config based on $ARCH value and thus rename the existing config to config-latest.$ARCH. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
22 lines
425 B
Bash
Executable File
22 lines
425 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
source $(cd $(dirname $0) && pwd)/helpers.sh
|
|
|
|
REPO_PATH=${1:-}
|
|
|
|
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/config-latest."$ARCH" .config
|
|
make -j $((4*$(nproc))) olddefconfig all >/dev/null
|
|
travis_fold end build_kernel
|
|
fi
|
|
|