From: "mark.yang" <[email protected]> do_kernel_configcheck evaluates Kconfig with kconfiglib instead of kbuild make, so scripts/Makefile.clang never sets CLANG_FLAGS and the compiler checks in scripts/Kconfig.include pick it up from the environment. With TOOLCHAIN = "clang" the audit fails:
Sorry, this assembler is not supported. as-version.sh needs -fintegrated-as in the arguments to recognize the integrated assembler. Export the flags kbuild would use, with gcc this expands to nothing. Signed-off-by: mark.yang <[email protected]> --- meta/classes-recipe/kernel-yocto.bbclass | 7 +++++++ 1 file changed, 7 insertions(+) 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
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240412): https://lists.openembedded.org/g/openembedded-core/message/240412 Mute This Topic: https://lists.openembedded.org/mt/120168203/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
