Support kernel compilation with Clang/LLVM

This commit is contained in:
Evgenii Zheltonozhskii
2024-08-14 12:23:36 +03:00
committed by Igor
parent 63163387c7
commit 0aa2371db5
2 changed files with 26 additions and 4 deletions

View File

@@ -342,6 +342,12 @@ function adaptative_prepare_host_dependencies() {
host_dependencies+=(libc6-amd64-cross) # Support for running x86 binaries (under qemu on other arches)
fi
if [[ "${KERNEL_COMPILER}" == "clang" ]]; then
host_dependencies+=("clang")
host_dependencies+=("llvm")
host_dependencies+=("lld")
fi
declare -g EXTRA_BUILD_DEPS=""
call_extension_method "add_host_dependencies" <<- 'ADD_HOST_DEPENDENCIES'
*run before installing host dependencies*