Skip to contentSkip to conversation

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

PATCH New Richard Purdie 1 participant 1 message Mar 18, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 binconfig: Handle the case where ${B} != ${S}

This change allows ${B} != ${S} builds to work which use binconfig.

---

meta/classes/binconfig.bbclass +1 -1
index 7b683a8..4c42602 100644
@@ -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