diff options
author | Richard Purdie <richard@openedhand.com> | 2007-06-14 15:06:42 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-06-14 15:06:42 +0000 |
commit | ce69ac4f71e177e90c6260580741a099b89b0282 (patch) | |
tree | 2a94d51c3c5dc679c761814a92700930cd5d828b /meta/packages | |
parent | 0a46762039a594fa32778b419ec9ff1c0002e642 (diff) | |
download | openembedded-core-ce69ac4f71e177e90c6260580741a099b89b0282.tar.gz openembedded-core-ce69ac4f71e177e90c6260580741a099b89b0282.tar.bz2 openembedded-core-ce69ac4f71e177e90c6260580741a099b89b0282.tar.xz openembedded-core-ce69ac4f71e177e90c6260580741a099b89b0282.zip |
meta-toolchain: Fix symlinks after moving files around (gross hack)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1941 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages')
-rw-r--r-- | meta/packages/meta/external-poky-toolchain.bb | 3 | ||||
-rw-r--r-- | meta/packages/meta/meta-toolchain.bb | 12 |
2 files changed, 15 insertions, 0 deletions
diff --git a/meta/packages/meta/external-poky-toolchain.bb b/meta/packages/meta/external-poky-toolchain.bb index 7cf657f5c..c54ad9174 100644 --- a/meta/packages/meta/external-poky-toolchain.bb +++ b/meta/packages/meta/external-poky-toolchain.bb @@ -8,7 +8,10 @@ PROVIDES = "\ virtual/libintl \ virtual/libiconv \ glibc-thread-db \ + virtual/linux-libc-headers " + +RPROVIDES = "glibc-gconv-iso8859-1" PR = "r1" inherit sdk diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index bf922cd31..72513dff6 100644 --- a/meta/packages/meta/meta-toolchain.bb +++ b/meta/packages/meta/meta-toolchain.bb @@ -64,6 +64,18 @@ EOF cp -pPR ${SDK_OUTPUT}/${prefix}/lib/* ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib rm -rf ${SDK_OUTPUT}/${prefix}/lib/* + for fn in `ls ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/`; do + if [ -h ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$fn ]; then + link=`readlink ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$fn` + bname=`basename $link` + if [ ! -e $link -a -e ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$bame ]; then + rm ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$fn + ln -s $bname ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/$fn + fi + + fi + done + mv ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/lib/gcc* ${SDK_OUTPUT}/${prefix}/lib cp -pPR ${TMPDIR}/cross/${TARGET_SYS}/include/linux/ ${SDK_OUTPUT}/${prefix}/${TARGET_SYS}/include/ |