| Message ID | 20260708022856.2087339-3-mark.yang@lge.com |
|---|---|
| State | Changes Requested |
| Headers | show |
| Series | kernel: make the kernel toolchain switchable to clang | expand |
diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass index e7fdeb5d4b..46ccc69e75 100644 --- a/meta/classes-recipe/kernel-yocto.bbclass +++ b/meta/classes-recipe/kernel-yocto.bbclass @@ -578,6 +578,13 @@ python do_config_analysis() { bb.warn( analysis ) } +# The kconfiglib audit evaluates Kconfig's compiler checks outside kbuild make, +# where scripts/Makefile.clang would normally set CLANG_FLAGS, so provide it +# via the environment. +CLANG_FLAGS ?= "" +CLANG_FLAGS:toolchain-clang = "--target=${HOST_SYS} -fintegrated-as" +export CLANG_FLAGS + python do_kernel_configcheck() { import re, string, sys, subprocess