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>
This commit is contained in:
parent
64cd9855c8
commit
e924d5bbe7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue