From 55ea40c0150a2b003c8b0b99fe9243c2f5c6d264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Negrier=20Duarte?= Date: Sun, 7 Apr 2024 11:50:47 +0100 Subject: [PATCH] Kernel Patch build: Use latest llvm/clang to build the kernel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * https://apt.llvm.org/ Signed-off-by: Gonçalo Negrier Duarte --- deploy/build_kernelpatch.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/deploy/build_kernelpatch.sh b/deploy/build_kernelpatch.sh index 78ea942..bc55d5c 100755 --- a/deploy/build_kernelpatch.sh +++ b/deploy/build_kernelpatch.sh @@ -15,6 +15,9 @@ echo "REPODIR: ${REPODIR}" echo "BUILD_DIR: ${BUILD_DIR}" echo "TAG: ${TAG}" +# Install the current clang and llvm +sudo apt-get update +sudo apt-get install clang-format clang-tidy clang-tools clang clangd libc++-dev libc++1 libc++abi-dev libc++abi1 libclang-dev libclang1 liblldb-dev libllvm-ocaml-dev libomp-dev libomp5 lld lldb llvm-dev llvm-runtime llvm python3-clang # Recreate build dir rm -rf "${BUILD_DIR}" || true @@ -44,12 +47,12 @@ git format-patch HEAD~1 sudo apt-get install -y build-essential libncurses-dev bison flex libssl-dev libelf-dev # Clean -make clean && make mrproper +make clean && make LLVM=1 IAS=1 mrproper # Create config with new module enabled -make defconfig +make LLVM=1 IAS=1 defconfig # cp -v /boot/config-$(uname -r) .config echo "CONFIG_LEGION_LAPTOP=m" >>.config # Build -make -j 8 +make LLVM=1 IAS=1 -j 8