summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorDexuan Cui <dexuan.cui@intel.com>2011-01-18 10:24:17 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-25 10:59:17 +0000
commit7109712a25762a530e7385bc796c3b9ff0836303 (patch)
treeb398001e2ea2357765eb9c27139e651145d7a7c4 /meta/classes
parentbeb9166b3adf83c5e864afcb56cf9ea24f55a7c3 (diff)
downloadopenembedded-core-7109712a25762a530e7385bc796c3b9ff0836303.tar.gz
openembedded-core-7109712a25762a530e7385bc796c3b9ff0836303.tar.bz2
openembedded-core-7109712a25762a530e7385bc796c3b9ff0836303.tar.xz
openembedded-core-7109712a25762a530e7385bc796c3b9ff0836303.zip
cross.bbclass: make MULTIMACH_TARGET_SYS adjustable for bindir, libdir, libexecdir
This will be used by gcc-cross-initial and gcc-cross-intermediate. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/cross.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/cross.bbclass b/meta/classes/cross.bbclass
index 6ec98b239..6d7c7cd46 100644
--- a/meta/classes/cross.bbclass
+++ b/meta/classes/cross.bbclass
@@ -40,15 +40,16 @@ target_prefix := "${prefix}"
target_exec_prefix := "${exec_prefix}"
# Overrides for paths
+CROSS_TARGET_SYS_DIR = "${MULTIMACH_TARGET_SYS}"
prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
base_prefix = "${STAGING_DIR_NATIVE}"
exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}"
-bindir = "${exec_prefix}/bin/${MULTIMACH_TARGET_SYS}"
+bindir = "${exec_prefix}/bin/${CROSS_TARGET_SYS_DIR}"
sbindir = "${bindir}"
base_bindir = "${bindir}"
base_sbindir = "${bindir}"
-libdir = "${exec_prefix}/lib/${MULTIMACH_TARGET_SYS}"
-libexecdir = "${exec_prefix}/libexec/${MULTIMACH_TARGET_SYS}"
+libdir = "${exec_prefix}/lib/${CROSS_TARGET_SYS_DIR}"
+libexecdir = "${exec_prefix}/libexec/${CROSS_TARGET_SYS_DIR}"
do_populate_sysroot[sstate-inputdirs] = "${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE}"