summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-cross.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-27 01:23:07 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-30 16:39:06 +0100
commite078edbf99f733c04ec8ca50ff10d2200b6d14d4 (patch)
tree627f73b4257adf3202d4302090c9e11ce3895807 /meta/recipes-devtools/gcc/gcc-cross.inc
parent03a0f8e8b4e286bfcc0076e7380ce26d1b1b106a (diff)
downloadpoky-e078edbf99f733c04ec8ca50ff10d2200b6d14d4.tar.gz
binutils/gcc/gdb: Add TARGET_ARCH to PN for all cross recipes
This allows them to co-exist together in the native sysroot, with one set of cross tools per target architecture. (From OE-Core rev: a2c5509520d5c3e082f55844e6545d0309565f8f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index 27ebcf6485..ef88d3f49c 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -9,6 +9,8 @@ python () {
9 d.setVar("EXTRADEPENDS", "linux-libc-headers") 9 d.setVar("EXTRADEPENDS", "linux-libc-headers")
10} 10}
11 11
12PN = "gcc-cross-${TARGET_ARCH}"
13
12require gcc-configure-common.inc 14require gcc-configure-common.inc
13 15
14EXTRA_OECONF += " --enable-poison-system-directories" 16EXTRA_OECONF += " --enable-poison-system-directories"
@@ -138,7 +140,7 @@ STOP
138INHIBIT_PACKAGE_STRIP = "1" 140INHIBIT_PACKAGE_STRIP = "1"
139 141
140# Compute how to get from libexecdir to bindir in python (easier than shell) 142# Compute how to get from libexecdir to bindir in python (easier than shell)
141BINRELPATH = "${@os.path.relpath(d.expand("${STAGING_DIR_NATIVE}${prefix_native}/bin/${MULTIMACH_TARGET_SYS}"), d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"))}" 143BINRELPATH = "${@os.path.relpath(d.expand("${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"), d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"))}"
142 144
143do_install () { 145do_install () {
144 ( cd ${B}/${TARGET_SYS}/libgcc; oe_runmake 'DESTDIR=${D}' install-unwind_h ) 146 ( cd ${B}/${TARGET_SYS}/libgcc; oe_runmake 'DESTDIR=${D}' install-unwind_h )
@@ -177,8 +179,8 @@ do_install () {
177 179
178 # gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build 180 # gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build
179 case ${PN} in 181 case ${PN} in
180 *gcc-cross|*gcc-crosssdk) 182 *gcc-cross-${TARGET_ARCH}|*gcc-crosssdk-${TARGET_ARCH})
181 dest=${D}/${includedir}/gcc-build-internal-${MULTIMACH_TARGET_SYS} 183 dest=${D}/${includedir}/gcc-build-internal-${TARGET_SYS}
182 hardlinkdir . $dest 184 hardlinkdir . $dest
183 ;; 185 ;;
184 esac 186 esac