mirror of
https://github.com/thead-yocto-mirror/meta-external-toolchain
synced 2026-09-07 08:24:42 +02:00
Architecture link in ADE Target Sysroot
This link is required by linker to link libraries and crt* files. The 'rm -f' command is changed to 'rm -rf' because in cedar release external- toolchain.bbclass copies all the stuff required by PACKAGES to image folder (in do_install stage). In doing so it copies the architecture folder (as it is required by FILES_glibc-multilib-link ) from sorcery folder to image folder in work directory. Afterwords when we try to remove the directory with 'rm -f' it prompts an error as directories cannot be deleted with this command. Signed-off-by: adnan-ali1 <m_adnanali_1@hotmail.com>
This commit is contained in:
1
recipes-external/glibc/core-image-base.bbappend
Normal file
1
recipes-external/glibc/core-image-base.bbappend
Normal file
@@ -0,0 +1 @@
|
||||
TOOLCHAIN_HOST_TASK += "${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-mel', 'glibc-multilib-link', '', d)}"
|
||||
1
recipes-external/glibc/core-image-sato.bbappend
Normal file
1
recipes-external/glibc/core-image-sato.bbappend
Normal file
@@ -0,0 +1 @@
|
||||
TOOLCHAIN_HOST_TASK += "${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-mel', 'glibc-multilib-link', '', d)}"
|
||||
@@ -68,6 +68,7 @@ glibc_external_do_install_extra () {
|
||||
"This may mean that your external toolchain uses a different" \
|
||||
"multi-lib setup than your machine configuration"
|
||||
fi
|
||||
create_multilib_link ${D}
|
||||
}
|
||||
|
||||
EXTERNAL_EXTRA_FILES += "\
|
||||
@@ -98,6 +99,10 @@ python () {
|
||||
}
|
||||
|
||||
# Default pattern is too greedy
|
||||
|
||||
PACKAGES += "glibc-multilib-link"
|
||||
FILES_glibc-multilib-link += "${@sysroot_multilib_suffix(d)}"
|
||||
|
||||
FILES_${PN}-utils = "\
|
||||
${bindir}/gencat \
|
||||
${bindir}/getconf \
|
||||
|
||||
@@ -10,7 +10,7 @@ create_multilib_link () {
|
||||
dest="$1"
|
||||
multilib_suffix="${@sysroot_multilib_suffix(d)}"
|
||||
if [ "$multilib_suffix" != "." ]; then
|
||||
rm -f $dest/$multilib_suffix
|
||||
rm -rf $dest/$multilib_suffix
|
||||
ln -s . $dest/$multilib_suffix
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user