diff options
author | Khem Raj <raj.khem@gmail.com> | 2012-01-09 11:39:48 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-10 17:28:45 +0000 |
commit | c9f68fc709881b1f3763899c3d6fe97884445c56 (patch) | |
tree | 3a599860401df3f346a9695e7426cf2e102dcc8f | |
parent | ac7a6e7bafbfcda2a4a0c86b8bb6dffdb376b2f7 (diff) | |
download | poky-c9f68fc709881b1f3763899c3d6fe97884445c56.tar.gz |
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
(From OE-Core rev: e48fd42e047f46399828a074c5125a0ce9c3f56f)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | 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 2f462ff93b..5d743338fc 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -73,7 +73,7 @@ oe_runconf () { | |||
73 | cfgscript="${S}/configure" | 73 | cfgscript="${S}/configure" |
74 | if [ -x "$cfgscript" ] ; then | 74 | if [ -x "$cfgscript" ] ; then |
75 | bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" | 75 | bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@" |
76 | $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed" | 76 | ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@" || bbfatal "oe_runconf failed" |
77 | else | 77 | else |
78 | bbfatal "no configure script found at $cfgscript" | 78 | bbfatal "no configure script found at $cfgscript" |
79 | fi | 79 | fi |