summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-03-29 17:04:13 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-03-29 17:04:13 +0100
commitfcfbc7b1e786e26f61985dbf7188e023e4366d26 (patch)
tree9320447419d8f6a97de5e9b91b8394631410fc19 /meta/classes
parent93f357d6572d969c2332a1f5d5b445c91c1e1bd6 (diff)
downloadpoky-fcfbc7b1e786e26f61985dbf7188e023e4366d26.tar.gz
autotools.bbclass: Allow extraction of the configure arguments for use in strange testcases
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/autotools.bbclass36
1 files changed, 19 insertions, 17 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 3853268a77..afb1d672ea 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -43,26 +43,28 @@ def autotools_set_crosscompiling(d):
43 43
44# EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}" 44# EXTRA_OECONF_append = "${@autotools_set_crosscompiling(d)}"
45 45
46CONFIGUREOPTS = " --build=${BUILD_SYS} \
47 --host=${HOST_SYS} \
48 --target=${TARGET_SYS} \
49 --prefix=${prefix} \
50 --exec_prefix=${exec_prefix} \
51 --bindir=${bindir} \
52 --sbindir=${sbindir} \
53 --libexecdir=${libexecdir} \
54 --datadir=${datadir} \
55 --sysconfdir=${sysconfdir} \
56 --sharedstatedir=${sharedstatedir} \
57 --localstatedir=${localstatedir} \
58 --libdir=${libdir} \
59 --includedir=${includedir} \
60 --oldincludedir=${oldincludedir} \
61 --infodir=${infodir} \
62 --mandir=${mandir}"
63
46oe_runconf () { 64oe_runconf () {
47 if [ -x ${S}/configure ] ; then 65 if [ -x ${S}/configure ] ; then
48 cfgcmd="${S}/configure \ 66 cfgcmd="${S}/configure \
49 --build=${BUILD_SYS} \ 67 ${CONFIGUREOPTS} \
50 --host=${HOST_SYS} \
51 --target=${TARGET_SYS} \
52 --prefix=${prefix} \
53 --exec_prefix=${exec_prefix} \
54 --bindir=${bindir} \
55 --sbindir=${sbindir} \
56 --libexecdir=${libexecdir} \
57 --datadir=${datadir} \
58 --sysconfdir=${sysconfdir} \
59 --sharedstatedir=${sharedstatedir} \
60 --localstatedir=${localstatedir} \
61 --libdir=${libdir} \
62 --includedir=${includedir} \
63 --oldincludedir=${oldincludedir} \
64 --infodir=${infodir} \
65 --mandir=${mandir} \
66 ${EXTRA_OECONF} \ 68 ${EXTRA_OECONF} \
67 $@" 69 $@"
68 oenote "Running $cfgcmd..." 70 oenote "Running $cfgcmd..."