aboutsummaryrefslogtreecommitdiffstats
path: root/classes/binconfig.bbclass
diff options
context:
space:
mode:
authorRene Wagner <rw@handhelds.org>2005-10-05 13:15:20 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-10-05 13:15:20 +0000
commit303731ed22883cdfbc69f7d4cd974a10bfcc0185 (patch)
tree9efecd5a01644d17258b45df93320b11fc27d5e9 /classes/binconfig.bbclass
parentc5e64b429409c17c92840341cf223b56410f779a (diff)
downloadopenembedded-303731ed22883cdfbc69f7d4cd974a10bfcc0185.tar.gz
openembedded-303731ed22883cdfbc69f7d4cd974a10bfcc0185.tar.bz2
openembedded-303731ed22883cdfbc69f7d4cd974a10bfcc0185.zip
binconfig.bbclass: add new BINCONFIG_GLOB variable to allow passing a different glob to find
Diffstat (limited to 'classes/binconfig.bbclass')
-rw-r--r--classes/binconfig.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/binconfig.bbclass b/classes/binconfig.bbclass
index a599dec3f2..bf15ebcdf9 100644
--- a/classes/binconfig.bbclass
+++ b/classes/binconfig.bbclass
@@ -24,8 +24,10 @@ def is_native(d):
import bb.data
return ["","-native"][bb.data.inherits_class('native', d)]
+BINCONFIG_GLOB ?= "*-config"
+
do_stage_append() {
- for config in `find ${S} -name '*-config'`; do
+ for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
configname=`basename $config`${@is_native(d)}
install -d ${STAGING_BINDIR}
cat $config | sed ${@get_binconfig_mangle(d)} > ${STAGING_BINDIR}/$configname