mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-06-21 08:52:27 +02:00
binutils-cross: install non-prefixed links for gcc
This will install, for example, a 'ld.gold' symlink in STAGING_BINDIR_TOOLCHAIN/gcc, which we can then allow gcc to get to. This makes it possible to rebuild just binutils-cross and use everything else from an external toolchain, which can be useful to get ahold of ld.gold when the external toolchain doesn't provide it. Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
6
core/recipes-devtools/binutils/binutils-cross_%.bbappend
Normal file
6
core/recipes-devtools/binutils/binutils-cross_%.bbappend
Normal file
@@ -0,0 +1,6 @@
|
||||
do_install_append () {
|
||||
install -d ${D}${bindir}/gcc
|
||||
for i in ${D}${bindir}/${TARGET_PREFIX}*; do
|
||||
ln -s ../$(basename "$i") ${D}${bindir}/gcc/${i##*/${TARGET_PREFIX}}
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user