[oe] [PATCH] binconfig.bbclass: take *-config from ${D}, not from ${S}

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Thu Jun 24 09:55:34 UTC 2010


It is not always right to take *-config files from source tree;
e.g. the buildsystem of recent ncurses takes an 'ncurses-config'
template and installs it as 'ncurses5-config' and 'ncursesw5-config'.

This patch uses the installed *-config files which are having the
expected name and content.

Signed-off-by: Enrico Scholz <enrico.scholz at sigma-chemnitz.de>
---
 classes/binconfig.bbclass |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/classes/binconfig.bbclass b/classes/binconfig.bbclass
index b3b2236..c1116fc 100644
--- a/classes/binconfig.bbclass
+++ b/classes/binconfig.bbclass
@@ -49,7 +49,10 @@ binconfig_package_preprocess () {
 SYSROOT_PREPROCESS_FUNCS += "binconfig_sysroot_preprocess"
 
 binconfig_sysroot_preprocess () {
-	for config in `find ${S} -name '${BINCONFIG_GLOB}'`; do
+	# take *-config from ${D}; Using ${PKGD} is not possible
+	# because it might not be populated yet and copies there will
+	# be altered by the function above.
+	for config in `find ${D} -name '${BINCONFIG_GLOB}'`; do
 		configname=`basename $config`
 		install -d ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}
 		cat $config | sed ${@get_binconfig_mangle(d)} > ${SYSROOT_DESTDIR}${STAGING_BINDIR_CROSS}/$configname
-- 
1.7.0.1





More information about the Openembedded-devel mailing list