From patchwork Mon Jan 9 20:15:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/7] autotools.bbclass: Introduce CACHED_CONFIGUREVARS Date: Mon, 09 Jan 2012 20:15:40 -0000 From: Khem Raj X-Patchwork-Id: 18807 Message-Id: <078fa2a7d93d568236448867f000b66ad50a2761.1326140011.git.raj.khem@gmail.com> To: openembedded-core@lists.openembedded.org 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 --- 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 () { cfgscript="${S}/configure" 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" else bbfatal "no configure script found at $cfgscript" fi