aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Woestenberg <leon@sidebranch.com>2009-11-24 12:16:21 +0100
committerLeon Woestenberg <leon@sidebranch.com>2009-11-24 12:16:21 +0100
commit740256e1a5464871d5f44d144860b5341588dc82 (patch)
tree079e37c4fb546d3bf999c8153da5c5f499d06aab
parentb67572044aeefa7e8075610e85520c0413c65332 (diff)
downloadopenembedded-740256e1a5464871d5f44d144860b5341588dc82.tar.gz
cross.bbclass: Fix STAGING_{INC,LIB}DIR for -cross.
Our STAGING_INCDIR for -cross packages contains two concatenated absolute paths, one based of CROSS_DIR, one based of STAGING_DIR. Both are absolute, based against TMPDIR, the construction is was follows: CROSS_DIR = ${TMPDIR}/cross/$BASE_PACKAGE_ARCH prefix = ${CROSS_DIR} exec_prefix = ${prefix} includedir = ${exec_prefix}/include STAGING_DIR = ${TMPDIR}/staging BASEPKG_HOST_SYS=${HOST_ARCH}${HOST_VENDOR}-${HOST_OS} STAGING_DIR_HOST=${STAGIG_DIR}/$BASEPKG_HOST_SYS} which are then concatenated for -cross packages as: STAGING_INCDIR = "${STAGING_DIR_HOST}${includedir}" Use the Poky approach instead, which introduces new variables for the target stuff. Signed-off-by: Leon Woestenberg <leon@sidebranch.com>
-rw-r--r--classes/cross.bbclass8
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/cross.bbclass b/classes/cross.bbclass
index 1de157c0f5..9d5297b7e9 100644
--- a/classes/cross.bbclass
+++ b/classes/cross.bbclass
@@ -27,6 +27,14 @@ LDFLAGS_build-darwin = "-L${STAGING_LIBDIR_NATIVE}"
TOOLCHAIN_OPTIONS = ""
+# Path mangling needed by the cross packaging
+# Note that we use := here to ensure that libdir and includedir are
+# target paths, not CROSS_DIR paths.
+target_libdir := "${libdir}"
+target_includedir := "${includedir}"
+target_base_libdir := "${base_libdir}"
+target_prefix := "${prefix}"
+
# Overrides for paths
prefix = "${CROSS_DIR}"
base_prefix = "${prefix}"