diff options
author | Christopher Larson <chris_larson@mentor.com> | 2012-06-01 15:53:58 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-05 22:56:32 +0100 |
commit | d068a7577cb12f87bba9f2f3959689bff90c4966 (patch) | |
tree | 500734e17b3d48b613ddf0d00961e0f60c1a33bf /meta | |
parent | b90cc2ac4a4c08f5750b7c65645460b324ab6741 (diff) | |
download | poky-d068a7577cb12f87bba9f2f3959689bff90c4966.tar.gz |
external-sourcery-toolchain: forcibly create usr/lib
If the usr/lib directory doesn't exist, the toolchain can fail to even try to
find crti.o in a completely different directory. This causes a failure for the
case where baselib is lib64.
(From OE-Core rev: 3c368f4c989bee68953b6d0fbf2adc44f97cc100)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/meta/external-sourcery-toolchain.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-core/meta/external-sourcery-toolchain.bb b/meta/recipes-core/meta/external-sourcery-toolchain.bb index b67410b6d1..74c82ec978 100644 --- a/meta/recipes-core/meta/external-sourcery-toolchain.bb +++ b/meta/recipes-core/meta/external-sourcery-toolchain.bb | |||
@@ -24,7 +24,7 @@ PROVIDES += "\ | |||
24 | virtual/linux-libc-headers \ | 24 | virtual/linux-libc-headers \ |
25 | " | 25 | " |
26 | PV = "${CSL_VER_MAIN}" | 26 | PV = "${CSL_VER_MAIN}" |
27 | PR = "r6" | 27 | PR = "r7" |
28 | 28 | ||
29 | #SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/${CSL_TARGET_SYS}/arm-${PV}-${TARGET_PREFIX}i686-pc-linux-gnu.tar.bz2" | 29 | #SRC_URI = "http://www.codesourcery.com/public/gnu_toolchain/${CSL_TARGET_SYS}/arm-${PV}-${TARGET_PREFIX}i686-pc-linux-gnu.tar.bz2" |
30 | 30 | ||
@@ -78,6 +78,10 @@ external_toolchain_sysroot_adjust() { | |||
78 | rm -f ${SYSROOT_DESTDIR}/$dest_sysroot | 78 | rm -f ${SYSROOT_DESTDIR}/$dest_sysroot |
79 | ln -s . ${SYSROOT_DESTDIR}/$dest_sysroot | 79 | ln -s . ${SYSROOT_DESTDIR}/$dest_sysroot |
80 | fi | 80 | fi |
81 | |||
82 | # If the usr/lib directory doesn't exist, the toolchain fails to even | ||
83 | # try to find crti.o in a completely different directory (usr/lib64) | ||
84 | install -d ${SYSROOT_DESTDIR}/usr/lib | ||
81 | } | 85 | } |
82 | 86 | ||
83 | PACKAGES =+ "libgcc libgcc-dev libstdc++ libstdc++-dev libstdc++-staticdev linux-libc-headers linux-libc-headers-dev gdbserver gdbserver-dbg" | 87 | PACKAGES =+ "libgcc libgcc-dev libstdc++ libstdc++-dev libstdc++-staticdev linux-libc-headers linux-libc-headers-dev gdbserver gdbserver-dbg" |