diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-27 01:23:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-30 16:39:06 +0100 |
commit | e078edbf99f733c04ec8ca50ff10d2200b6d14d4 (patch) | |
tree | 627f73b4257adf3202d4302090c9e11ce3895807 | |
parent | 03a0f8e8b4e286bfcc0076e7380ce26d1b1b106a (diff) | |
download | poky-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>
23 files changed, 45 insertions, 31 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index f8c9b1e7b4..0dc1e6b8b7 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -158,7 +158,7 @@ python autotools_copy_aclocals () { | |||
158 | manifest = d.expand("${SSTATE_MANIFESTS}/manifest-${BUILD_ARCH}-%s.populate_sysroot" % c) | 158 | manifest = d.expand("${SSTATE_MANIFESTS}/manifest-${BUILD_ARCH}-%s.populate_sysroot" % c) |
159 | elif c.startswith("nativesdk-"): | 159 | elif c.startswith("nativesdk-"): |
160 | manifest = d.expand("${SSTATE_MANIFESTS}/manifest-${SDK_ARCH}-%s.populate_sysroot" % c) | 160 | manifest = d.expand("${SSTATE_MANIFESTS}/manifest-${SDK_ARCH}-%s.populate_sysroot" % c) |
161 | elif c.endswith("-cross") or c.endswith("-cross-initial") or c.endswith("-crosssdk") or c.endswith("-crosssdk-initial"): | 161 | elif "-cross-" in c or "-crosssdk-" in c: |
162 | continue | 162 | continue |
163 | else: | 163 | else: |
164 | manifest = d.expand("${SSTATE_MANIFESTS}/manifest-${MACHINE}-%s.populate_sysroot" % c) | 164 | manifest = d.expand("${SSTATE_MANIFESTS}/manifest-${MACHINE}-%s.populate_sysroot" % c) |
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass index 70efee317e..cea6afb75d 100644 --- a/meta/classes/cross-canadian.bbclass +++ b/meta/classes/cross-canadian.bbclass | |||
@@ -9,7 +9,7 @@ | |||
9 | # or indirectly via dependency. No need to be in 'world'. | 9 | # or indirectly via dependency. No need to be in 'world'. |
10 | EXCLUDE_FROM_WORLD = "1" | 10 | EXCLUDE_FROM_WORLD = "1" |
11 | CLASSOVERRIDE = "class-cross-canadian" | 11 | CLASSOVERRIDE = "class-cross-canadian" |
12 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}:${STAGING_DIR_NATIVE}${bindir_native}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" | 12 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${SDK_VENDOR}-${SDK_OS}:${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" |
13 | 13 | ||
14 | # | 14 | # |
15 | # Update BASE_PACKAGE_ARCH and PACKAGE_ARCHS | 15 | # Update BASE_PACKAGE_ARCH and PACKAGE_ARCHS |
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass index b7d33f5e32..a8f3b601c2 100644 --- a/meta/classes/cross.bbclass +++ b/meta/classes/cross.bbclass | |||
@@ -19,6 +19,8 @@ HOST_AS_ARCH = "${BUILD_AS_ARCH}" | |||
19 | 19 | ||
20 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" | 20 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" |
21 | 21 | ||
22 | PACKAGE_ARCH = "${BUILD_ARCH}" | ||
23 | |||
22 | export PKG_CONFIG_DIR = "${STAGING_DIR}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${libdir}/pkgconfig" | 24 | export PKG_CONFIG_DIR = "${STAGING_DIR}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${libdir}/pkgconfig" |
23 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" | 25 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" |
24 | 26 | ||
@@ -43,7 +45,7 @@ target_libdir = "${target_exec_prefix}/${baselib}" | |||
43 | target_includedir := "${includedir}" | 45 | target_includedir := "${includedir}" |
44 | 46 | ||
45 | # Overrides for paths | 47 | # Overrides for paths |
46 | CROSS_TARGET_SYS_DIR = "${MULTIMACH_TARGET_SYS}" | 48 | CROSS_TARGET_SYS_DIR = "${TARGET_SYS}" |
47 | prefix = "${STAGING_DIR_NATIVE}${prefix_native}" | 49 | prefix = "${STAGING_DIR_NATIVE}${prefix_native}" |
48 | base_prefix = "${STAGING_DIR_NATIVE}" | 50 | base_prefix = "${STAGING_DIR_NATIVE}" |
49 | exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}" | 51 | exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}" |
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 7b16bc04d5..46cc2677d6 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -22,10 +22,6 @@ SSTATE_PATHSPEC = "${SSTATE_DIR}/${SSTATE_EXTRAPATHWILDCARD}*/${SSTATE_PKGSPEC | |||
22 | SSTATE_EXTRAPATH[vardepvalue] = "" | 22 | SSTATE_EXTRAPATH[vardepvalue] = "" |
23 | 23 | ||
24 | SSTATE_DUPWHITELIST = "${DEPLOY_DIR_IMAGE}/ ${DEPLOY_DIR}/licenses/" | 24 | SSTATE_DUPWHITELIST = "${DEPLOY_DIR_IMAGE}/ ${DEPLOY_DIR}/licenses/" |
25 | # Also need to make cross recipes append to ${PN} and install once for any given PACAGE_ARCH so | ||
26 | # can avoid multiple installs (e.g. routerstationpro+qemumips both using mips32) | ||
27 | SSTATE_DUPWHITELIST += "${STAGING_LIBDIR_NATIVE}/${MULTIMACH_TARGET_SYS} ${STAGING_DIR_NATIVE}/usr/libexec/${MULTIMACH_TARGET_SYS} ${STAGING_BINDIR_NATIVE}/${MULTIMACH_TARGET_SYS} ${STAGING_DIR_NATIVE}${includedir_native}/gcc-build-internal-${MULTIMACH_TARGET_SYS}" | ||
28 | SSTATE_DUPWHITELIST += "${STAGING_DIR_NATIVE}/sysroot-providers/virtual_${TARGET_PREFIX} ${STAGING_DIR_NATIVE}/sysroot-providers/binutils-cross ${STAGING_DIR_NATIVE}/sysroot-providers/gcc-cross" | ||
29 | # Avoid docbook/sgml catalog warnings for now | 25 | # Avoid docbook/sgml catalog warnings for now |
30 | SSTATE_DUPWHITELIST += "${STAGING_ETCDIR_NATIVE}/sgml ${STAGING_DATADIR_NATIVE}/sgml" | 26 | SSTATE_DUPWHITELIST += "${STAGING_ETCDIR_NATIVE}/sgml ${STAGING_DATADIR_NATIVE}/sgml" |
31 | 27 | ||
@@ -51,8 +47,7 @@ python () { | |||
51 | elif bb.data.inherits_class('crosssdk', d): | 47 | elif bb.data.inherits_class('crosssdk', d): |
52 | d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}_${SDK_ARCH}")) | 48 | d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}_${SDK_ARCH}")) |
53 | elif bb.data.inherits_class('cross', d): | 49 | elif bb.data.inherits_class('cross', d): |
54 | d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}_${TUNE_PKGARCH}")) | 50 | d.setVar('SSTATE_PKGARCH', d.expand("${BUILD_ARCH}_${TARGET_ARCH}")) |
55 | d.setVar('SSTATE_MANMACH', d.expand("${BUILD_ARCH}_${MACHINE}")) | ||
56 | elif bb.data.inherits_class('nativesdk', d): | 51 | elif bb.data.inherits_class('nativesdk', d): |
57 | d.setVar('SSTATE_PKGARCH', d.expand("${SDK_ARCH}")) | 52 | d.setVar('SSTATE_PKGARCH', d.expand("${SDK_ARCH}")) |
58 | elif bb.data.inherits_class('cross-canadian', d): | 53 | elif bb.data.inherits_class('cross-canadian', d): |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index b3786a757b..66f435fa0a 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -353,7 +353,7 @@ STAGING_DIR = "${TMPDIR}/sysroots" | |||
353 | STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}" | 353 | STAGING_DIR_NATIVE = "${STAGING_DIR}/${BUILD_SYS}" |
354 | STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}" | 354 | STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}" |
355 | STAGING_BINDIR_CROSS = "${STAGING_BINDIR}/crossscripts" | 355 | STAGING_BINDIR_CROSS = "${STAGING_BINDIR}/crossscripts" |
356 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" | 356 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" |
357 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}" | 357 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}" |
358 | STAGING_LIBEXECDIR_NATIVE = "${STAGING_DIR_NATIVE}${libexecdir_native}" | 358 | STAGING_LIBEXECDIR_NATIVE = "${STAGING_DIR_NATIVE}${libexecdir_native}" |
359 | STAGING_BASE_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${base_libdir_native}" | 359 | STAGING_BASE_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${base_libdir_native}" |
diff --git a/meta/recipes-core/eglibc/eglibc-initial.inc b/meta/recipes-core/eglibc/eglibc-initial.inc index 4cc6ffea99..92402f8ff5 100644 --- a/meta/recipes-core/eglibc/eglibc-initial.inc +++ b/meta/recipes-core/eglibc/eglibc-initial.inc | |||
@@ -4,9 +4,9 @@ PROVIDES = "virtual/${TARGET_PREFIX}libc-initial" | |||
4 | PACKAGES = "" | 4 | PACKAGES = "" |
5 | PACKAGES_DYNAMIC = "" | 5 | PACKAGES_DYNAMIC = "" |
6 | 6 | ||
7 | STAGINGCC = "gcc-cross-initial" | 7 | STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}" |
8 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial" | 8 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${TARGET_ARCH}" |
9 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TARGET}" | 9 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TCBOOTSTRAP}" |
10 | 10 | ||
11 | do_configure () { | 11 | do_configure () { |
12 | sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure | 12 | sed -ie 's,{ (exit 1); exit 1; }; },{ (exit 0); }; },g' ${S}/configure |
diff --git a/meta/recipes-core/eglibc/eglibc.inc b/meta/recipes-core/eglibc/eglibc.inc index 5008cf2931..30654f6d88 100644 --- a/meta/recipes-core/eglibc/eglibc.inc +++ b/meta/recipes-core/eglibc/eglibc.inc | |||
@@ -2,8 +2,8 @@ require eglibc-common.inc | |||
2 | require eglibc-ld.inc | 2 | require eglibc-ld.inc |
3 | require eglibc-testing.inc | 3 | require eglibc-testing.inc |
4 | 4 | ||
5 | STAGINGCC = "gcc-cross-initial" | 5 | STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}" |
6 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial" | 6 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${TARGET_ARCH}" |
7 | PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:" | 7 | PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:" |
8 | 8 | ||
9 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TCBOOTSTRAP}" | 9 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR_TCBOOTSTRAP}" |
diff --git a/meta/recipes-core/meta/meta-ide-support.bb b/meta/recipes-core/meta/meta-ide-support.bb index 40bda28949..03cad6ed69 100644 --- a/meta/recipes-core/meta/meta-ide-support.bb +++ b/meta/recipes-core/meta/meta-ide-support.bb | |||
@@ -4,7 +4,7 @@ LICENSE = "MIT" | |||
4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ |
5 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 5 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
6 | 6 | ||
7 | DEPENDS = "virtual/libc gdb-cross qemu-native qemu-helper-native unfs3-native" | 7 | DEPENDS = "virtual/libc gdb-cross-${TARGET_ARCH} qemu-native qemu-helper-native unfs3-native" |
8 | PR = "r3" | 8 | PR = "r3" |
9 | 9 | ||
10 | inherit meta toolchain-scripts | 10 | inherit meta toolchain-scripts |
diff --git a/meta/recipes-core/uclibc/uclibc-initial_git.bb b/meta/recipes-core/uclibc/uclibc-initial_git.bb index 6433229174..c937ccb108 100644 --- a/meta/recipes-core/uclibc/uclibc-initial_git.bb +++ b/meta/recipes-core/uclibc/uclibc-initial_git.bb | |||
@@ -8,8 +8,8 @@ PROVIDES = "virtual/${TARGET_PREFIX}libc-initial" | |||
8 | PACKAGES = "" | 8 | PACKAGES = "" |
9 | PACKAGES_DYNAMIC = "" | 9 | PACKAGES_DYNAMIC = "" |
10 | 10 | ||
11 | STAGINGCC = "gcc-cross-initial" | 11 | STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}" |
12 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial" | 12 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${TARGET_ARCH}" |
13 | 13 | ||
14 | do_install() { | 14 | do_install() { |
15 | # Install initial headers into the cross dir | 15 | # Install initial headers into the cross dir |
diff --git a/meta/recipes-core/uclibc/uclibc_git.bb b/meta/recipes-core/uclibc/uclibc_git.bb index 38a7e45517..fd02b3d612 100644 --- a/meta/recipes-core/uclibc/uclibc_git.bb +++ b/meta/recipes-core/uclibc/uclibc_git.bb | |||
@@ -2,8 +2,8 @@ require uclibc.inc | |||
2 | require uclibc-package.inc | 2 | require uclibc-package.inc |
3 | require uclibc-git.inc | 3 | require uclibc-git.inc |
4 | 4 | ||
5 | STAGINGCC = "gcc-cross-initial" | 5 | STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}" |
6 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial" | 6 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${TARGET_ARCH}" |
7 | 7 | ||
8 | PROVIDES += "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc" | 8 | PROVIDES += "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc" |
9 | 9 | ||
diff --git a/meta/recipes-devtools/binutils/binutils-cross.inc b/meta/recipes-devtools/binutils/binutils-cross.inc index 300a1d39ec..fd3d801491 100644 --- a/meta/recipes-devtools/binutils/binutils-cross.inc +++ b/meta/recipes-devtools/binutils/binutils-cross.inc | |||
@@ -1,6 +1,9 @@ | |||
1 | inherit cross | 1 | inherit cross |
2 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" | 2 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" |
3 | 3 | ||
4 | PN = "binutils-cross-${TARGET_ARCH}" | ||
5 | BPN = "binutils" | ||
6 | |||
4 | INHIBIT_DEFAULT_DEPS = "1" | 7 | INHIBIT_DEFAULT_DEPS = "1" |
5 | INHIBIT_AUTOTOOLS_DEPS = "1" | 8 | INHIBIT_AUTOTOOLS_DEPS = "1" |
6 | 9 | ||
diff --git a/meta/recipes-devtools/binutils/binutils-crosssdk_2.24.bb b/meta/recipes-devtools/binutils/binutils-crosssdk_2.24.bb index 8af407f6e0..b6d9a215e1 100644 --- a/meta/recipes-devtools/binutils/binutils-crosssdk_2.24.bb +++ b/meta/recipes-devtools/binutils/binutils-crosssdk_2.24.bb | |||
@@ -2,6 +2,8 @@ require binutils-cross_${PV}.bb | |||
2 | 2 | ||
3 | inherit crosssdk | 3 | inherit crosssdk |
4 | 4 | ||
5 | PN = "binutils-crosssdk-${TARGET_ARCH}" | ||
6 | |||
5 | PROVIDES = "virtual/${TARGET_PREFIX}binutils-crosssdk" | 7 | PROVIDES = "virtual/${TARGET_PREFIX}binutils-crosssdk" |
6 | 8 | ||
7 | SRC_URI += "file://relocatable_sdk.patch" | 9 | SRC_URI += "file://relocatable_sdk.patch" |
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc index 1e00249b19..a96bcaa92c 100644 --- a/meta/recipes-devtools/gcc/gcc-common.inc +++ b/meta/recipes-devtools/gcc/gcc-common.inc | |||
@@ -7,6 +7,8 @@ NATIVEDEPS = "" | |||
7 | 7 | ||
8 | inherit autotools gettext | 8 | inherit autotools gettext |
9 | 9 | ||
10 | BPN = "gcc" | ||
11 | |||
10 | def get_gcc_fpu_setting(bb, d): | 12 | def get_gcc_fpu_setting(bb, d): |
11 | if d.getVar('ARMPKGSFX_EABI', True) == "hf" and d.getVar('TRANSLATED_TARGET_ARCH', True) == "arm": | 13 | if d.getVar('ARMPKGSFX_EABI', True) == "hf" and d.getVar('TRANSLATED_TARGET_ARCH', True) == "arm": |
12 | return "--with-float=hard" | 14 | return "--with-float=hard" |
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc index 8d979b1144..307f73c8ed 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc | |||
@@ -2,7 +2,6 @@ inherit cross-canadian | |||
2 | 2 | ||
3 | SUMMARY = "GNU cc and gcc C compilers (cross-canadian for ${TARGET_ARCH} target)" | 3 | SUMMARY = "GNU cc and gcc C compilers (cross-canadian for ${TARGET_ARCH} target)" |
4 | PN = "gcc-cross-canadian-${TRANSLATED_TARGET_ARCH}" | 4 | PN = "gcc-cross-canadian-${TRANSLATED_TARGET_ARCH}" |
5 | BPN = "gcc" | ||
6 | 5 | ||
7 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-${HOST_PREFIX}libc-for-gcc nativesdk-gettext" | 6 | DEPENDS = "virtual/${TARGET_PREFIX}gcc virtual/${HOST_PREFIX}binutils-crosssdk virtual/nativesdk-${HOST_PREFIX}libc-for-gcc nativesdk-gettext" |
8 | 7 | ||
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial.inc b/meta/recipes-devtools/gcc/gcc-cross-initial.inc index 897e055cf3..5a6da8bbd2 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-initial.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-initial.inc | |||
@@ -5,6 +5,8 @@ PACKAGES = "" | |||
5 | INHIBIT_AUTOTOOLS_DEPS = "1" | 5 | INHIBIT_AUTOTOOLS_DEPS = "1" |
6 | INHIBIT_DEFAULT_DEPS = "1" | 6 | INHIBIT_DEFAULT_DEPS = "1" |
7 | 7 | ||
8 | PN = "gcc-cross-initial-${TARGET_ARCH}" | ||
9 | |||
8 | CROSS_TARGET_SYS_DIR_append = ".${PN}" | 10 | CROSS_TARGET_SYS_DIR_append = ".${PN}" |
9 | 11 | ||
10 | # This is intended to be a -very- basic config | 12 | # This is intended to be a -very- basic config |
@@ -68,8 +70,8 @@ do_install () { | |||
68 | 70 | ||
69 | # gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build | 71 | # gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build |
70 | case ${PN} in | 72 | case ${PN} in |
71 | *gcc-cross-initial|*gcc-crosssdk-initial) | 73 | *gcc-cross-initial-${TARGET_ARCH}|*gcc-crosssdk-initial-${TARGET_ARCH}) |
72 | dest=${D}/${includedir}/gcc-build-internal-initial-${MULTIMACH_TARGET_SYS} | 74 | dest=${D}/${includedir}/gcc-build-internal-initial-${TARGET_SYS} |
73 | hardlinkdir . $dest | 75 | hardlinkdir . $dest |
74 | ;; | 76 | ;; |
75 | esac | 77 | esac |
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 | ||
12 | PN = "gcc-cross-${TARGET_ARCH}" | ||
13 | |||
12 | require gcc-configure-common.inc | 14 | require gcc-configure-common.inc |
13 | 15 | ||
14 | EXTRA_OECONF += " --enable-poison-system-directories" | 16 | EXTRA_OECONF += " --enable-poison-system-directories" |
@@ -138,7 +140,7 @@ STOP | |||
138 | INHIBIT_PACKAGE_STRIP = "1" | 140 | INHIBIT_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) |
141 | BINRELPATH = "${@os.path.relpath(d.expand("${STAGING_DIR_NATIVE}${prefix_native}/bin/${MULTIMACH_TARGET_SYS}"), d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"))}" | 143 | BINRELPATH = "${@os.path.relpath(d.expand("${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_SYS}"), d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"))}" |
142 | 144 | ||
143 | do_install () { | 145 | do_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 |
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk-initial.inc b/meta/recipes-devtools/gcc/gcc-crosssdk-initial.inc index c6f74a6445..7d2599cb6c 100644 --- a/meta/recipes-devtools/gcc/gcc-crosssdk-initial.inc +++ b/meta/recipes-devtools/gcc/gcc-crosssdk-initial.inc | |||
@@ -1,5 +1,7 @@ | |||
1 | inherit crosssdk | 1 | inherit crosssdk |
2 | 2 | ||
3 | PN = "gcc-crosssdk-initial-${TARGET_ARCH}" | ||
4 | |||
3 | SYSTEMHEADERS = "${SDKPATHNATIVE}${prefix_nativesdk}/include" | 5 | SYSTEMHEADERS = "${SDKPATHNATIVE}${prefix_nativesdk}/include" |
4 | SYSTEMLIBS = "${SDKPATHNATIVE}${base_libdir_nativesdk}/" | 6 | SYSTEMLIBS = "${SDKPATHNATIVE}${base_libdir_nativesdk}/" |
5 | SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/" | 7 | SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/" |
diff --git a/meta/recipes-devtools/gcc/gcc-crosssdk.inc b/meta/recipes-devtools/gcc/gcc-crosssdk.inc index 5fe0b947dd..53f880f39b 100644 --- a/meta/recipes-devtools/gcc/gcc-crosssdk.inc +++ b/meta/recipes-devtools/gcc/gcc-crosssdk.inc | |||
@@ -1,5 +1,7 @@ | |||
1 | inherit crosssdk | 1 | inherit crosssdk |
2 | 2 | ||
3 | PN = "gcc-crosssdk-${TARGET_ARCH}" | ||
4 | |||
3 | SYSTEMHEADERS = "${SDKPATHNATIVE}${prefix_nativesdk}/include" | 5 | SYSTEMHEADERS = "${SDKPATHNATIVE}${prefix_nativesdk}/include" |
4 | SYSTEMLIBS = "${SDKPATHNATIVE}${base_libdir_nativesdk}/" | 6 | SYSTEMLIBS = "${SDKPATHNATIVE}${base_libdir_nativesdk}/" |
5 | SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/" | 7 | SYSTEMLIBS1 = "${SDKPATHNATIVE}${libdir_nativesdk}/" |
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc index 2e82a09b1c..5fd2a8c8b0 100644 --- a/meta/recipes-devtools/gcc/gcc-runtime.inc +++ b/meta/recipes-devtools/gcc/gcc-runtime.inc | |||
@@ -20,7 +20,7 @@ RUNTIMETARGET = "libssp libstdc++-v3 libgomp libatomic" | |||
20 | 20 | ||
21 | do_configure () { | 21 | do_configure () { |
22 | export CXX="${CXX} -nostdinc++ -nostdlib++" | 22 | export CXX="${CXX} -nostdinc++ -nostdlib++" |
23 | mtarget=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` | 23 | mtarget=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` |
24 | target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` | 24 | target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` |
25 | hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B} | 25 | hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B} |
26 | for d in libgcc ${RUNTIMETARGET}; do | 26 | for d in libgcc ${RUNTIMETARGET}; do |
diff --git a/meta/recipes-devtools/gcc/libgcc-common.inc b/meta/recipes-devtools/gcc/libgcc-common.inc index b30bcfeaeb..c81a80c6de 100644 --- a/meta/recipes-devtools/gcc/libgcc-common.inc +++ b/meta/recipes-devtools/gcc/libgcc-common.inc | |||
@@ -3,7 +3,7 @@ BPN = "libgcc" | |||
3 | INHIBIT_DEFAULT_DEPS = "1" | 3 | INHIBIT_DEFAULT_DEPS = "1" |
4 | 4 | ||
5 | do_configure () { | 5 | do_configure () { |
6 | target=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` | 6 | target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` |
7 | install -d ${D}${base_libdir} ${D}${libdir} | 7 | install -d ${D}${base_libdir} ${D}${libdir} |
8 | hardlinkdir ${STAGING_INCDIR_NATIVE}/${LIBGCCBUILDTREENAME}$target/ ${B} | 8 | hardlinkdir ${STAGING_INCDIR_NATIVE}/${LIBGCCBUILDTREENAME}$target/ ${B} |
9 | mkdir -p ${B}/${BPN} | 9 | mkdir -p ${B}/${BPN} |
diff --git a/meta/recipes-devtools/gcc/libgcc-initial.inc b/meta/recipes-devtools/gcc/libgcc-initial.inc index 2ba27a81d8..27e2e45aa6 100644 --- a/meta/recipes-devtools/gcc/libgcc-initial.inc +++ b/meta/recipes-devtools/gcc/libgcc-initial.inc | |||
@@ -2,8 +2,8 @@ require libgcc-common.inc | |||
2 | 2 | ||
3 | DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial" | 3 | DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial" |
4 | 4 | ||
5 | STAGINGCC = "gcc-cross-initial" | 5 | STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}" |
6 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial" | 6 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${TARGET_ARCH}" |
7 | PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:" | 7 | PATH_prepend = "${STAGING_BINDIR_TOOLCHAIN}.${STAGINGCC}:" |
8 | 8 | ||
9 | PACKAGES = "" | 9 | PACKAGES = "" |
diff --git a/meta/recipes-devtools/gcc/libgfortran.inc b/meta/recipes-devtools/gcc/libgfortran.inc index 30e5ffeead..7bf412134b 100644 --- a/meta/recipes-devtools/gcc/libgfortran.inc +++ b/meta/recipes-devtools/gcc/libgfortran.inc | |||
@@ -5,7 +5,7 @@ EXTRA_OECONF_PATHS = " \ | |||
5 | --with-build-sysroot=${STAGING_DIR_TARGET}" | 5 | --with-build-sysroot=${STAGING_DIR_TARGET}" |
6 | 6 | ||
7 | do_configure () { | 7 | do_configure () { |
8 | mtarget=`echo ${MULTIMACH_TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` | 8 | mtarget=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` |
9 | target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` | 9 | target=`echo ${TARGET_SYS} | sed -e s#-${SDKPKGSUFFIX}##` |
10 | hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B} | 10 | hardlinkdir ${STAGING_INCDIR_NATIVE}/gcc-build-internal-$mtarget ${B} |
11 | 11 | ||
diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc index 6fc98ff110..cb99b06c5b 100644 --- a/meta/recipes-devtools/gdb/gdb-cross.inc +++ b/meta/recipes-devtools/gdb/gdb-cross.inc | |||
@@ -8,6 +8,9 @@ EXTRA_OECONF += "--without-python" | |||
8 | 8 | ||
9 | GDBPROPREFIX = "" | 9 | GDBPROPREFIX = "" |
10 | 10 | ||
11 | PN = "gdb-cross-${TARGET_ARCH}" | ||
12 | BPN = "gdb" | ||
13 | |||
11 | inherit cross | 14 | inherit cross |
12 | inherit gettext | 15 | inherit gettext |
13 | 16 | ||