diff options
Diffstat (limited to 'meta/classes/cross.bbclass')
-rw-r--r-- | meta/classes/cross.bbclass | 14 |
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' |
5 | EXCLUDE_FROM_WORLD = "1" | 5 | EXCLUDE_FROM_WORLD = "1" |
6 | 6 | ||
7 | # Save PACKAGE_ARCH before changing HOST_ARCH | ||
8 | OLD_PACKAGE_ARCH := "${PACKAGE_ARCH}" | ||
9 | PACKAGE_ARCH = "${OLD_PACKAGE_ARCH}" | ||
10 | # Also save BASE_PACKAGE_ARCH since HOST_ARCH can influence it | ||
11 | OLD_BASE_PACKAGE_ARCH := "${BASE_PACKAGE_ARCH}" | ||
12 | BASE_PACKAGE_ARCH = "${OLD_BASE_PACKAGE_ARCH}" | ||
13 | BASEPKG_HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" | ||
14 | |||
15 | PACKAGES = "" | 7 | PACKAGES = "" |
16 | 8 | ||
17 | HOST_ARCH = "${BUILD_ARCH}" | 9 | HOST_ARCH = "${BUILD_ARCH}" |
@@ -20,10 +12,10 @@ HOST_OS = "${BUILD_OS}" | |||
20 | HOST_PREFIX = "${BUILD_PREFIX}" | 12 | HOST_PREFIX = "${BUILD_PREFIX}" |
21 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" | 13 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" |
22 | 14 | ||
23 | STAGING_DIR_HOST = "${STAGING_DIR}/${BASEPKG_HOST_SYS}" | 15 | STAGING_DIR_HOST = "${STAGING_DIR}/${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" |
24 | 16 | ||
25 | export PKG_CONFIG_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}${libdir}/pkgconfig" | 17 | export PKG_CONFIG_DIR = "${STAGING_DIR}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}${libdir}/pkgconfig" |
26 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${BASE_PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}" | 18 | export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" |
27 | 19 | ||
28 | CPPFLAGS = "${BUILD_CPPFLAGS}" | 20 | CPPFLAGS = "${BUILD_CPPFLAGS}" |
29 | CFLAGS = "${BUILD_CFLAGS}" | 21 | CFLAGS = "${BUILD_CFLAGS}" |