diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-22 09:12:04 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-08-23 16:20:12 +0100 |
commit | 50170617c632e62aa68e9bbb700fd8290fa4b90e (patch) | |
tree | 9d8456a926566080693eda3ffec4a8c64b8c8238 /meta/classes | |
parent | b64d6af3ec80d2f4040378c785ffcac415c0827a (diff) | |
download | poky-50170617c632e62aa68e9bbb700fd8290fa4b90e.tar.gz |
bitbake.conf/classes/gcc: Don't hardcode -nativesdk
Hardcoding -nativesdk as the sdk package architecture is inflexible. We may have
multiple different target OS and we need a way to be able to separate them. Turning
this into a configurable value allows the flexibility we need to build different
SDKMACHINEs with different OS targets.
The commit should have no behaviour change, just makes things more configurable.
(From OE-Core rev: a2110e86b98d646e136de9ec6b8e668079b0d4f4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/cross-canadian.bbclass | 16 | ||||
-rw-r--r-- | meta/classes/crosssdk.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/nativesdk.bbclass | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass index fa2ab70a34..87dd9948e7 100644 --- a/meta/classes/cross-canadian.bbclass +++ b/meta/classes/cross-canadian.bbclass | |||
@@ -14,25 +14,25 @@ STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${SDK_ARCH}${S | |||
14 | # | 14 | # |
15 | # Update BASE_PACKAGE_ARCH and PACKAGE_ARCHS | 15 | # Update BASE_PACKAGE_ARCH and PACKAGE_ARCHS |
16 | # | 16 | # |
17 | PACKAGE_ARCH = "${SDK_ARCH}-nativesdk" | 17 | PACKAGE_ARCH = "${SDK_ARCH}-${SDKPKGSUFFIX}" |
18 | python () { | 18 | python () { |
19 | archs = d.getVar('PACKAGE_ARCHS', True).split() | 19 | archs = d.getVar('PACKAGE_ARCHS', True).split() |
20 | sdkarchs = [] | 20 | sdkarchs = [] |
21 | for arch in archs: | 21 | for arch in archs: |
22 | sdkarchs.append(arch + '-nativesdk') | 22 | sdkarchs.append(arch + '-${SDKPKGSUFFIX}') |
23 | d.setVar('PACKAGE_ARCHS', " ".join(sdkarchs)) | 23 | d.setVar('PACKAGE_ARCHS', " ".join(sdkarchs)) |
24 | } | 24 | } |
25 | MULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}" | 25 | MULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}" |
26 | 26 | ||
27 | INHIBIT_DEFAULT_DEPS = "1" | 27 | INHIBIT_DEFAULT_DEPS = "1" |
28 | 28 | ||
29 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}" | 29 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}" |
30 | 30 | ||
31 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR}/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}" | 31 | TOOLCHAIN_OPTIONS = " --sysroot=${STAGING_DIR}/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}" |
32 | 32 | ||
33 | PATH_append = ":${TMPDIR}/sysroots/${HOST_ARCH}/${bindir_cross}" | 33 | PATH_append = ":${TMPDIR}/sysroots/${HOST_ARCH}/${bindir_cross}" |
34 | PKGDATA_DIR = "${TMPDIR}/pkgdata/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}" | 34 | PKGDATA_DIR = "${TMPDIR}/pkgdata/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}" |
35 | PKGHIST_DIR = "${TMPDIR}/pkghistory/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}/" | 35 | PKGHIST_DIR = "${TMPDIR}/pkghistory/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}/" |
36 | 36 | ||
37 | HOST_ARCH = "${SDK_ARCH}" | 37 | HOST_ARCH = "${SDK_ARCH}" |
38 | HOST_VENDOR = "${SDK_VENDOR}" | 38 | HOST_VENDOR = "${SDK_VENDOR}" |
@@ -90,8 +90,8 @@ export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig" | |||
90 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" | 90 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" |
91 | 91 | ||
92 | # Cross-canadian packages need to pull in nativesdk dynamic libs | 92 | # Cross-canadian packages need to pull in nativesdk dynamic libs |
93 | SHLIBSDIRS = "${TMPDIR}/pkgdata/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}/shlibs/ ${TMPDIR}/pkgdata/all-${HOST_VENDOR}-${HOST_OS}/shlibs/" | 93 | SHLIBSDIRS = "${TMPDIR}/pkgdata/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}/shlibs/ ${TMPDIR}/pkgdata/all-${HOST_VENDOR}-${HOST_OS}/shlibs/" |
94 | SHLIBSDIR = "${TMPDIR}/pkgdata/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}/shlibs/" | 94 | SHLIBSDIR = "${TMPDIR}/pkgdata/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}/shlibs/" |
95 | 95 | ||
96 | do_populate_sysroot[stamp-extra-info] = "" | 96 | do_populate_sysroot[stamp-extra-info] = "" |
97 | 97 | ||
diff --git a/meta/classes/crosssdk.bbclass b/meta/classes/crosssdk.bbclass index 635c0c45cb..bcc285bdbf 100644 --- a/meta/classes/crosssdk.bbclass +++ b/meta/classes/crosssdk.bbclass | |||
@@ -7,7 +7,7 @@ python () { | |||
7 | d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH', True)) | 7 | d.setVar('TUNE_PKGARCH', d.getVar('SDK_ARCH', True)) |
8 | } | 8 | } |
9 | 9 | ||
10 | STAGING_DIR_TARGET = "${STAGING_DIR}/${SDK_ARCH}-nativesdk${SDK_VENDOR}-${SDK_OS}" | 10 | STAGING_DIR_TARGET = "${STAGING_DIR}/${SDK_ARCH}-${SDKPKGSUFFIX}${SDK_VENDOR}-${SDK_OS}" |
11 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | 11 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}" |
12 | 12 | ||
13 | TARGET_ARCH = "${SDK_ARCH}" | 13 | TARGET_ARCH = "${SDK_ARCH}" |
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass index 0d5cba4755..26d1e4a3e5 100644 --- a/meta/classes/nativesdk.bbclass +++ b/meta/classes/nativesdk.bbclass | |||
@@ -11,7 +11,7 @@ CLASSOVERRIDE = "class-nativesdk" | |||
11 | # | 11 | # |
12 | # Update PACKAGE_ARCH and PACKAGE_ARCHS | 12 | # Update PACKAGE_ARCH and PACKAGE_ARCHS |
13 | # | 13 | # |
14 | PACKAGE_ARCH = "${SDK_ARCH}-nativesdk" | 14 | PACKAGE_ARCH = "${SDK_ARCH}-${SDKPKGSUFFIX}" |
15 | PACKAGE_ARCHS = "${SDK_PACKAGE_ARCHS}" | 15 | PACKAGE_ARCHS = "${SDK_PACKAGE_ARCHS}" |
16 | 16 | ||
17 | # | 17 | # |