diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-08-12 09:11:25 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-08-21 09:35:17 -0700 |
commit | 2d08d6bf376a1e06c53164fd6283b03ec2309da4 (patch) | |
tree | cf29f1ce89b8af9d65fdc04f48742c6c7608bdbd /classes/clang.bbclass | |
parent | 741bec384b8f66ffffc6f7cb38597271b063f0f9 (diff) | |
download | meta-clang-2d08d6bf376a1e06c53164fd6283b03ec2309da4.tar.gz |
recipe_sysroot_check_ld_is_lld: Do not create symlink for allarch recipes
allarch recipes do not really need compiler toolchains, otherwise they
are not allarch
Fixes issues like
| ln: failed to create symbolic link 'TOPDIR/build/tmp/work/cortexa72-cortexa53-crypto-yoe-linux/ca-certificates/20211016-r0/recipe-sysroot-native/usr/bin/aarch64-yoe-linux/aarch64-yoe-linux-ld': No such file or directory
Reported-by: Cliff Brake <cbrake@bec-systems.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'classes/clang.bbclass')
-rw-r--r-- | classes/clang.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass index 94c37b0..8670525 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass | |||
@@ -143,6 +143,7 @@ RECIPESYSROOTFUNCS:toolchain-clang = "recipe_sysroot_check_ld_is_lld" | |||
143 | 143 | ||
144 | recipe_sysroot_check_ld_is_lld () { | 144 | recipe_sysroot_check_ld_is_lld () { |
145 | if ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', 'true', 'false', d)} && \ | 145 | if ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', 'true', 'false', d)} && \ |
146 | ${@bb.utils.contains('PACKAGE_ARCH', 'all', 'false', 'true', d)} && \ | ||
146 | ${@bb.utils.contains('INHIBIT_DEFAULT_DEPS', '1', 'false', 'true', d)}; then | 147 | ${@bb.utils.contains('INHIBIT_DEFAULT_DEPS', '1', 'false', 'true', d)}; then |
147 | ln -srf ${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.lld ${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld | 148 | ln -srf ${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.lld ${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld |
148 | fi | 149 | fi |