diff options
author | Michael Lauer <mickey@vanille-media.de> | 2005-08-09 02:16:06 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-09 02:16:06 +0000 |
commit | 0395f0f5e840805c6ac53cec294a732de4c03b44 (patch) | |
tree | 3bb0b8e67df190757d1ba31c386d62d3464eb7c3 /classes | |
parent | 89f188aa9d4a1546c7d9bc08780c7bd4659ae9db (diff) |
binconfig.bbclass: reinstantiate patch that solved appending -native slightly more elegant
http://openembedded.bkbits.net:8080/openembedded/diffs/classes/binconfig.bbclass@1.7?nav=index.html|src/.|src/classes|hist/classes/binconfig.bbclass
Diffstat (limited to 'classes')
-rw-r--r-- | classes/binconfig.bbclass | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/classes/binconfig.bbclass b/classes/binconfig.bbclass index 35f859b2c8..a599dec3f2 100644 --- a/classes/binconfig.bbclass +++ b/classes/binconfig.bbclass @@ -20,22 +20,13 @@ def get_binconfig_mangle(d): return s # Native package configurations go in ${BINDIR}/<name>-config-native to prevent a collision with cross packages -def is_native_pkg(d): - import bb.data, os - if not bb.data.inherits_class('native', d): - return "no" - else: - return "yes" +def is_native(d): + import bb.data + return ["","-native"][bb.data.inherits_class('native', d)] do_stage_append() { for config in `find ${S} -name '*-config'`; do - origname=`basename $config` - if [ "${@is_native_pkg(d)}" == "yes" ] - then - configname=$origname-native - else - configname=$origname - fi + configname=`basename $config`${@is_native(d)} install -d ${STAGING_BINDIR} cat $config | sed ${@get_binconfig_mangle(d)} > ${STAGING_BINDIR}/$configname chmod u+x ${STAGING_BINDIR}/$configname |