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:
adnan-ali1
2015-06-03 20:33:02 +05:00
parent ff3bf44d4a
commit b465038b28
4 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1 @@
TOOLCHAIN_HOST_TASK += "${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-mel', 'glibc-multilib-link', '', d)}"

View File

@@ -0,0 +1 @@
TOOLCHAIN_HOST_TASK += "${@bb.utils.contains('BBFILE_COLLECTIONS', 'qt5-mel', 'glibc-multilib-link', '', d)}"

View File

@@ -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 \

View File

@@ -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
}