summaryrefslogtreecommitdiffstats
path: root/meta/classes/cross-canadian.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/cross-canadian.bbclass')
-rw-r--r--meta/classes/cross-canadian.bbclass16
1 files changed, 3 insertions, 13 deletions
diff --git a/meta/classes/cross-canadian.bbclass b/meta/classes/cross-canadian.bbclass
index 334f12cdae..bd738ecd4d 100644
--- a/meta/classes/cross-canadian.bbclass
+++ b/meta/classes/cross-canadian.bbclass
@@ -6,7 +6,8 @@ EXCLUDE_FROM_WORLD = "1"
6OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}" 6OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}"
7# Save PACKAGE_ARCH 7# Save PACKAGE_ARCH
8OLD_PACKAGE_ARCH := ${PACKAGE_ARCH} 8OLD_PACKAGE_ARCH := ${PACKAGE_ARCH}
9PACKAGE_ARCH = "${HOST_ARCH}-${OLD_PACKAGE_ARCH}-nativesdk" 9PACKAGE_ARCH = "${SDK_ARCH}-${TARGET_ARCH}-canadian"
10PACKAGE_ARCHS = "${PACKAGE_ARCH}"
10# Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it 11# Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it
11OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}" 12OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}"
12BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}" 13BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}"
@@ -17,7 +18,7 @@ STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}-nativesdk"
17STAGING_DIR_TARGET = "${STAGING_DIR}/${BASEPKG_TARGET_SYS}" 18STAGING_DIR_TARGET = "${STAGING_DIR}/${BASEPKG_TARGET_SYS}"
18 19
19PATH_append = ":${TMPDIR}/cross/${HOST_ARCH}/${bindir_cross}" 20PATH_append = ":${TMPDIR}/cross/${HOST_ARCH}/${bindir_cross}"
20PKGDATA_DIR = "${TMPDIR}/pkgdata/${MULTIMACH_HOST_SYS}" 21PKGDATA_DIR = "${TMPDIR}/pkgdata/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}"
21 22
22HOST_ARCH = "${SDK_ARCH}" 23HOST_ARCH = "${SDK_ARCH}"
23HOST_VENDOR = "${SDK_VENDOR}" 24HOST_VENDOR = "${SDK_VENDOR}"
@@ -43,14 +44,3 @@ FILES_${PN}-dbg += "${prefix}/.debug \
43export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig" 44export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig"
44export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" 45export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
45 46
46python () {
47 barch = bb.data.getVar('HOST_ARCH', d, True)
48 archs = bb.data.getVar('PACKAGE_ARCHS', d, True).split()
49 sdkarchs = []
50 for arch in archs:
51 sdkarchs.append(barch + '-' + arch + '-nativesdk')
52 bb.data.setVar('PACKAGE_ARCHS', " ".join(sdkarchs), d)
53}
54
55
56