1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-01-12 03:10:15 +00:00

arm-toolchain: Support linux-arm64-ack build with Android Clang

This commit introduces a configuration variable, LINUX_ACK_TOOLCHAIN_CLANG,
that (if set) switches the kernel build to use the Android Clang compiler

Change-Id: Iab362916159bf6e8096061f1b7281a7513001d61
This commit is contained in:
Anders Dellien
2022-01-18 17:03:49 +00:00
committed by Jon Mason
parent c4fb4f53cb
commit db56f59865
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
# Clang-specific configuration of kernel build
# We need to add this dependency as the kernel configuration depends on the compiler
do_kernel_configme[depends] += "androidclang-native:do_populate_sysroot"
DEPENDS:append = " androidclang-native"
KERNEL_CC = "${CCACHE}clang ${HOST_CC_KERNEL_ARCH}"

View File

@@ -0,0 +1,3 @@
LINUX_ARM64_ACK_TOOLCHAIN_REQUIRE = "${@oe.utils.ifelse(d.getVar('LINUX_ACK_TOOLCHAIN_CLANG'), 'linux-arm64-ack-clang.inc', '')}"
require ${LINUX_ARM64_ACK_TOOLCHAIN_REQUIRE}