From 1f7b3122a78db83f6d0dbdf7f7095588e5ee0a59 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 19 Feb 2022 11:16:38 -0800 Subject: nonclangable.conf: Disable llvm-objcopy/llvm-strip on selected recipes This is until upstream bugs are fixed, linux-firmware change however is legit and will be permanent Signed-off-by: Khem Raj (cherry picked from commit 9ad53591eaf522f8fcbc0c8e0e9e6c55ccdf8272) --- conf/nonclangable.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 7e92d71..9da3260 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -336,3 +336,18 @@ TOOLCHAIN_pn-u-boot-seco-imx = "gcc" # see https://bugs.llvm.org/show_bug.cgi?id=50443 this is in clang-13, until it is fixed do not use -O2 SELECTED_OPTIMIZATION:remove:pn-poke:toolchain-clang = "-O2" + +# see https://github.com/llvm/llvm-project/issues/53948 +OBJCOPY:pn-opensbi:toolchain-clang = "${HOST_PREFIX}objcopy" +OBJCOPY:pn-libc-bench:toolchain-clang = "${HOST_PREFIX}objcopy" +STRIP:pn-libc-bench:toolchain-clang = "${HOST_PREFIX}strip" +OBJCOPY:pn-aufs-util:toolchain-clang = "${HOST_PREFIX}objcopy" +STRIP:pn-aufs-util:toolchain-clang = "${HOST_PREFIX}strip" + +# Depend on GNU objcopy option missing in llvm-objcopy +# llvm-objcopy: error: unknown argument '--section-alignment=512' +OBJCOPY:pn-systemd-boot:toolchain-clang = "${HOST_PREFIX}objcopy" + +# Need OBJDUMP during do_package_qa which is set to llvm-objdump with meta-clang +# it might work with GNU objdump since it falls back to one from build host +DEPENDS:pn-linux-firmware:append:toolchain-clang = " clang-native" -- cgit v1.2.3-54-g00ecf