Patchwork binconfig: Handle the case where ${B} != ${S}

login
register
mail settings
Submitter Richard Purdie
Date March 18, 2013, 1:31 a.m.
Message ID <1363570299.4315.30.camel@ted>
Download mbox | patch
Permalink /patch/46323/
State Accepted
Commit e924d5bbe796db8c35d375c3ab457f29ba795375
Headers show

Comments

Richard Purdie - March 18, 2013, 1:31 a.m.
This change allows ${B} != ${S} builds to work which use binconfig.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/classes/binconfig.bbclass b/meta/classes/binconfig.bbclass
index 7b683a8..4c42602 100644
--- a/meta/classes/binconfig.bbclass
+++ b/meta/classes/binconfig.bbclass
@@ -50,7 +50,7 @@  binconfig_package_preprocess () {
 SYSROOT_PREPROCESS_FUNCS += "binconfig_sysroot_preprocess"
 
 binconfig_sysroot_preprocess () {
-	for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
+	for config in `find ${S} -name '${BINCONFIG_GLOB}'` `find ${B} -name '${BINCONFIG_GLOB}'`; do
 		configname=`basename $config`
 		install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}
 		cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${bindir_crossscripts}/$configname