[oe] [PATCH (updated)] autotools.bbclass: enhanced oe_runconf() to accept quoted arguments
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Sun May 23 12:52:12 UTC 2010
This patch allows to pass quoted strings in EXTRA_OECONF. E.g. with
this patch, it is possible to do
| EXTRA_OECONF = "--with-build-cflags='${BUILD_CFLAGS}'"
where 'BUILD_CFLAGS' contains multiple, whitespace separated arguments.
Such flags can be also passed to oe_runconf() directly:
| oe_runconf --with-build-cflags="${BUILD_CFLAGS}"
This patch might create incompatibilities for recipes which workaround
the
current limitations.
As a sideeffect, 'set -x' debug output is now much nicer because
superflous whitespaces in the configure call are removed.
Signed-off-by: Enrico Scholz <enrico.scholz at sigma-chemnitz.de>
---
classes/autotools.bbclass | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index 9bb4f6c..2e53cc6 100644
--- a/classes/autotools.bbclass
+++ b/classes/autotools.bbclass
@@ -64,12 +64,12 @@ CONFIGUREOPTS = " --build=${BUILD_SYS} \
oe_runconf () {
if [ -x ${S}/configure ] ; then
- cfgcmd="${S}/configure \
+ set -- ${S}/configure \
${CONFIGUREOPTS} \
${EXTRA_OECONF} \
- $@"
- oenote "Running $cfgcmd..."
- $cfgcmd || oefatal "oe_runconf failed"
+ "$@"
+ oenote "Running $*..."
+ "$@" || oefatal "oe_runconf failed"
else
oefatal "no configure script found"
fi
--
1.7.0.1
More information about the Openembedded-devel
mailing list