summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-18 01:31:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-18 13:18:24 +0000
commite924d5bbe796db8c35d375c3ab457f29ba795375 (patch)
treedf192eb2bf57384bbafc5ea7dd539e5e8d9f12b8
parent64cd9855c8dada8bb4eac8d00255473e38678163 (diff)
downloadpoky-e924d5bbe796db8c35d375c3ab457f29ba795375.tar.gz
binconfig: Handle the case where ${B} != ${S}
This change allows ${B} != ${S} builds to work which use binconfig. (From OE-Core rev: dc175a20d3a269c08691d92ecf13afff8c1340dd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/binconfig.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass
index 7b683a80fd..4c42602aff 100644
--- a/meta/classes/binconfig.bbclass
+++ b/meta/classes/binconfig.bbclass
@@ -50,7 +50,7 @@ binconfig_package_preprocess () {
50SYSROOT_PREPROCESS_FUNCS += "binconfig_sysroot_preprocess" 50SYSROOT_PREPROCESS_FUNCS += "binconfig_sysroot_preprocess"
51 51
52binconfig_sysroot_preprocess () { 52binconfig_sysroot_preprocess () {
53 for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do 53 for config in `find ${S} -name '${BINCONFIG_GLOB}'` `find ${B} -name '${BINCONFIG_GLOB}'`; do
54 configname=`basename $config` 54 configname=`basename $config`
55 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts} 55 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
56 cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname 56 cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname