diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-06-27 18:56:42 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-28 15:04:09 +0100 |
commit | 3f0ee65462acf199b69ed18897ca65755907340e (patch) | |
tree | 9f801c2aa0e8fd17a43328212100fa8beab68bf3 /meta | |
parent | 8a89a2e641fd5fa97a7d6977f55d10790ee13d58 (diff) | |
download | openembedded-core-3f0ee65462acf199b69ed18897ca65755907340e.tar.gz openembedded-core-3f0ee65462acf199b69ed18897ca65755907340e.tar.bz2 openembedded-core-3f0ee65462acf199b69ed18897ca65755907340e.tar.xz openembedded-core-3f0ee65462acf199b69ed18897ca65755907340e.zip |
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:"
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-kernel.inc | 11 |
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 534776276..be772ba79 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}" do_install () { cd gcc oe_runmake 'DESTDIR=${D}' install-common install-headers install-libgcc - install -m 0755 xgcc ${D}${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}gcc-${PV} + install -m 0755 xgcc ${D}${bindir}/${TARGET_PREFIX}gcc-${PV} + + # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are + # found. These need to be relative paths so they work in different locations. + dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ + install -d $dest + for t in ar as ld nm objcopy objdump ranlib strip cpp; do + ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t $dest$t + ln -sf ${BINRELPATH}/${TARGET_PREFIX}$t ${dest}${TARGET_PREFIX}$t + done } |