Skip to content

Commit

Permalink
Kernel Patch build: Use latest llvm/clang to build the kernel
Browse files Browse the repository at this point in the history
* https://apt.llvm.org/

Signed-off-by: Gonçalo Negrier Duarte <[email protected]>
  • Loading branch information
MrDuartePT committed Apr 7, 2024
1 parent 2f9c277 commit 55ea40c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions deploy/build_kernelpatch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 55ea40c

Please sign in to comment.