summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-06-27 18:56:42 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-28 15:06:53 +0100
commitfb3800178947e21899227e4ba4db4670b29231c7 (patch)
treeff07d20b6eb1c8c1621d38e9f8b57ca02206925c /meta/recipes-devtools/gcc
parentff37094a7ee0bd0b87bcc80b9afac205aec7e0e5 (diff)
downloadpoky-fb3800178947e21899227e4ba4db4670b29231c7.tar.gz
gcc-cross-kernel: update to match new toolchain sysroot layout
The versioned gcc binary gets installed and the needed binutils symlinks are made. To make it fully work again the following is needed in kernel recipes/classes: PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.gcc-cross-kernel:" (From OE-Core rev: 3f0ee65462acf199b69ed18897ca65755907340e) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-kernel.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-kernel.inc b/meta/recipes-devtools/gcc/gcc-cross-kernel.inc
index 5347762762..be772ba79a 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-kernel.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-kernel.inc
@@ -6,5 +6,14 @@ PROVIDES = "virtual/${TARGET_PREFIX}gcc-${PV}"
6do_install () { 6do_install () {
7 cd gcc 7 cd gcc
8 oe_runmake 'DESTDIR=${D}' install-common install-headers install-libgcc 8 oe_runmake 'DESTDIR=${D}' install-common install-headers install-libgcc
9 install -m 0755 xgcc ${D}${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}gcc-${PV} 9 install -m 0755 xgcc ${D}${bindir}/${TARGET_PREFIX}gcc-${PV}
10
11 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
12 # found. These need to be relative paths so they work in different locations.
13 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/
14 install -d $dest
15 for t in ar as ld nm objcopy objdump ranlib strip cpp; do
16 ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t
17 ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t ${dest}${TARGET_PREFIX}$t
18 done
10} 19}