diff options
Diffstat (limited to 'meta/classes/cross-canadian.bbclass')
-rw-r--r-- | meta/classes/cross-canadian.bbclass | 16 |
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" | |||
6 | OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}" | 6 | OLD_MULTIMACH_ARCH := "${MULTIMACH_ARCH}" |
7 | # Save PACKAGE_ARCH | 7 | # Save PACKAGE_ARCH |
8 | OLD_PACKAGE_ARCH := ${PACKAGE_ARCH} | 8 | OLD_PACKAGE_ARCH := ${PACKAGE_ARCH} |
9 | PACKAGE_ARCH = "${HOST_ARCH}-${OLD_PACKAGE_ARCH}-nativesdk" | 9 | PACKAGE_ARCH = "${SDK_ARCH}-${TARGET_ARCH}-canadian" |
10 | PACKAGE_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 |
11 | OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}" | 12 | OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}" |
12 | BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}" | 13 | BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}" |
@@ -17,7 +18,7 @@ STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_SYS}-nativesdk" | |||
17 | STAGING_DIR_TARGET = "${STAGING_DIR}/${BASEPKG_TARGET_SYS}" | 18 | STAGING_DIR_TARGET = "${STAGING_DIR}/${BASEPKG_TARGET_SYS}" |
18 | 19 | ||
19 | PATH_append = ":${TMPDIR}/cross/${HOST_ARCH}/${bindir_cross}" | 20 | PATH_append = ":${TMPDIR}/cross/${HOST_ARCH}/${bindir_cross}" |
20 | PKGDATA_DIR = "${TMPDIR}/pkgdata/${MULTIMACH_HOST_SYS}" | 21 | PKGDATA_DIR = "${TMPDIR}/pkgdata/${HOST_ARCH}-nativesdk${HOST_VENDOR}-${HOST_OS}" |
21 | 22 | ||
22 | HOST_ARCH = "${SDK_ARCH}" | 23 | HOST_ARCH = "${SDK_ARCH}" |
23 | HOST_VENDOR = "${SDK_VENDOR}" | 24 | HOST_VENDOR = "${SDK_VENDOR}" |
@@ -43,14 +44,3 @@ FILES_${PN}-dbg += "${prefix}/.debug \ | |||
43 | export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig" | 44 | export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${layout_libdir}/pkgconfig" |
44 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" | 45 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}" |
45 | 46 | ||
46 | python () { | ||
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 | |||