Skip to content

Commit

Permalink
recipe_sysroot_check_ld_is_lld: Do not create symlink for allarch rec…
Browse files Browse the repository at this point in the history
…ipes

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 <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Aug 12, 2023
1 parent f20deab commit beee310
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/clang.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ RECIPESYSROOTFUNCS:toolchain-clang = "recipe_sysroot_check_ld_is_lld"

recipe_sysroot_check_ld_is_lld () {
if ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', 'true', 'false', d)} && \
${@bb.utils.contains('PACKAGE_ARCH', 'all', 'false', 'true', d)} && \
${@bb.utils.contains('INHIBIT_DEFAULT_DEPS', '1', 'false', 'true', d)}; then
ln -srf ${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.lld ${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld
fi
Expand Down

0 comments on commit beee310

Please sign in to comment.