[oe-commits] Khem Raj : autotools.bbclass: Introduce CACHED_CONFIGUREVARS

git at git.openembedded.org git at git.openembedded.org
Tue Jan 10 17:36:58 UTC 2012

Module: openembedded-core.git
Branch: master
Commit: e48fd42e047f46399828a074c5125a0ce9c3f56f
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e48fd42e047f46399828a074c5125a0ce9c3f56f

Author: Khem Raj <raj.khem at gmail.com>
Date:   Mon Jan  9 11:39:48 2012 -0800

autotools.bbclass: Introduce CACHED_CONFIGUREVARS

This variable is for holding the cached configure variables
to be specified in recipes. e.g.

CACHED_CONFIGUREVARS += "ac_cv_foo=yes ac_cv_bar=no"

This will make sure that the variables are not detected
by configure. This is useful in cross builds where
some features can not be detected correctly by configure
and having it as a variables gives us capability to
override it

Signed-off-by: Khem Raj <raj.khem at gmail.com>


 meta/classes/autotools.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 2f462ff..5d74333 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -73,7 +73,7 @@ oe_runconf () {
 	if [ -x "$cfgscript" ] ; then
 		bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
-		$cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed"
+		${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed"
 		bbfatal "no configure script found at $cfgscript"

More information about the Openembedded-commits mailing list