summaryrefslogtreecommitdiffstats
path: root/meta/classes/cross.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/cross.bbclass')
-rw-r--r--meta/classes/cross.bbclass14
1 files changed, 3 insertions, 11 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 81358ec8dd..050d63e412 100644
--- a/meta/classes/cross.bbclass
+++ b/meta/classes/cross.bbclass
@@ -4,14 +4,6 @@ inherit relocatable
4# no need for them to be a direct target of 'world' 4# no need for them to be a direct target of 'world'
5EXCLUDE_FROM_WORLD = "1" 5EXCLUDE_FROM_WORLD = "1"
6 6
7# Save PACKAGE_ARCH before changing HOST_ARCH
8OLD_PACKAGE_ARCH := "${PACKAGE_ARCH}"
9PACKAGE_ARCH = "${OLD_PACKAGE_ARCH}"
10# Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it
11OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}"
12BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}"
13BASEPKG_HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
14
15PACKAGES = "" 7PACKAGES = ""
16 8
17HOST_ARCH = "${BUILD_ARCH}" 9HOST_ARCH = "${BUILD_ARCH}"
@@ -20,10 +12,10 @@ HOST_OS = "${BUILD_OS}"
20HOST_PREFIX = "${BUILD_PREFIX}" 12HOST_PREFIX = "${BUILD_PREFIX}"
21HOST_CC_ARCH = "${BUILD_CC_ARCH}" 13HOST_CC_ARCH = "${BUILD_CC_ARCH}"
22 14
23STAGING_DIR_HOST = "${STAGING_DIR}/${BASEPKG_HOST_SYS}" 15STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
24 16
25export PKG_CONFIG_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}${libdir}/pkgconfig" 17export PKG_CONFIG_DIR = "${STAGING_DIR}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${libdir}/pkgconfig"
26export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" 18export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}"
27 19
28CPPFLAGS = "${BUILD_CPPFLAGS}" 20CPPFLAGS = "${BUILD_CPPFLAGS}"
29CFLAGS = "${BUILD_CFLAGS}" 21CFLAGS = "${BUILD_CFLAGS}"