From 187871629802150e75063a8b81ca75188f8e0ad9 Mon Sep 17 00:00:00 2001 From: Eduard Zingerman Date: Wed, 5 Apr 2023 20:08:23 +0300 Subject: [PATCH] [build-selftests] Clean selftests before building them Cleaning selftests is useful in case if cached kernel build artifacts contain build results for selftests. --- build-selftests/build_selftests.sh | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/build-selftests/build_selftests.sh b/build-selftests/build_selftests.sh index 46a1984..97e39fd 100755 --- a/build-selftests/build_selftests.sh +++ b/build-selftests/build_selftests.sh @@ -31,14 +31,19 @@ else fi cd ${REPO_ROOT}/${REPO_PATH} -make \ - CLANG=clang-${LLVM_VERSION} \ - LLC=llc-${LLVM_VERSION} \ - LLVM_STRIP=llvm-strip-${LLVM_VERSION} \ - VMLINUX_BTF="${KBUILD_OUTPUT}/vmlinux" \ - VMLINUX_H="${VMLINUX_H}" \ - -C "${REPO_ROOT}/${REPO_PATH}/tools/testing/selftests/bpf" \ - -j $(kernel_build_make_jobs) + +MAKE_OPTS=$(cat <