mirror of
https://github.com/h3xduck/TripleCross.git
synced 2026-01-20 06:13:08 +08:00
Setup development environment with libbpf
This commit is contained in:
21
external/libbpf-bootstrap/libbpf/travis-ci/vmtest/prepare_selftests.sh
vendored
Executable file
21
external/libbpf-bootstrap/libbpf/travis-ci/vmtest/prepare_selftests.sh
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/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
|
||||
|
||||
Reference in New Issue
Block a user