summaryrefslogtreecommitdiffstats
path: root/meta/classes/binconfig.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-01-30 14:44:18 +0000
committerRichard Purdie <richard@openedhand.com>2007-01-30 14:44:18 +0000
commit44856a298c538382c0bb6fadad5f863625ad07b1 (patch)
tree7d851220e9f36bd56685da6569b5bce35065c12f /meta/classes/binconfig.bbclass
parent9bab90e7232196ac5c798d0a8910f0af96567b17 (diff)
downloadpoky-44856a298c538382c0bb6fadad5f863625ad07b1.tar.gz
STAGING_BINDIR: No longer need to rename -native binconfig binaries, set STAGING_BINDIR correctly
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1221 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes/binconfig.bbclass')
-rw-r--r--meta/classes/binconfig.bbclass13
1 files changed, 4 insertions, 9 deletions
diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass
index 317e080fc5..dadf2dddfc 100644
--- a/meta/classes/binconfig.bbclass
+++ b/meta/classes/binconfig.bbclass
@@ -20,11 +20,6 @@ def get_binconfig_mangle(d):
20 s += " -e 's:OEEXECPREFIX:${STAGING_LIBDIR}/..:'" 20 s += " -e 's:OEEXECPREFIX:${STAGING_LIBDIR}/..:'"
21 return s 21 return s
22 22
23# Native package configurations go in ${BINDIR}/<name>-config-native to prevent a collision with cross packages
24def is_native(d):
25 import bb.data
26 return ["","-native"][bb.data.inherits_class('native', d)]
27
28BINCONFIG_GLOB ?= "*-config" 23BINCONFIG_GLOB ?= "*-config"
29 24
30do_install_append() { 25do_install_append() {
@@ -52,9 +47,9 @@ do_install_append() {
52 47
53do_stage_append() { 48do_stage_append() {
54 for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do 49 for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
55 configname=`basename $config`${@is_native(d)} 50 configname=`basename $config`
56 install -d ${STAGING_BINDIR} 51 install -d ${STAGING_BINDIR_CROSS}
57 cat $config | sed ${@get_binconfig_mangle(d)} > ${STAGING_BINDIR}/$configname 52 cat $config | sed ${@get_binconfig_mangle(d)} > ${STAGING_BINDIR_CROSS}/$configname
58 chmod u+x ${STAGING_BINDIR}/$configname 53 chmod u+x ${STAGING_BINDIR_CROSS}/$configname
59 done 54 done
60} 55}