summaryrefslogtreecommitdiffstats
path: root/meta/classes/waf.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/waf.bbclass')
-rw-r--r--meta/classes/waf.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/waf.bbclass b/meta/classes/waf.bbclass
index 19e93761b3..8e6d754c29 100644
--- a/meta/classes/waf.bbclass
+++ b/meta/classes/waf.bbclass
@@ -1,6 +1,8 @@
1# avoids build breaks when using no-static-libs.inc 1# avoids build breaks when using no-static-libs.inc
2DISABLE_STATIC = "" 2DISABLE_STATIC = ""
3 3
4B = "${WORKDIR}/build"
5
4EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}" 6EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"
5 7
6python waf_preconfigure() { 8python waf_preconfigure() {
@@ -22,16 +24,16 @@ python waf_preconfigure() {
22do_configure[prefuncs] += "waf_preconfigure" 24do_configure[prefuncs] += "waf_preconfigure"
23 25
24waf_do_configure() { 26waf_do_configure() {
25 ${S}/waf configure --prefix=${prefix} ${WAF_EXTRA_CONF} ${EXTRA_OECONF} 27 (cd ${S} && ./waf configure -o ${B} --prefix=${prefix} ${WAF_EXTRA_CONF} ${EXTRA_OECONF})
26} 28}
27 29
28do_compile[progress] = "outof:^\[\s*(\d+)/\s*(\d+)\]\s+" 30do_compile[progress] = "outof:^\[\s*(\d+)/\s*(\d+)\]\s+"
29waf_do_compile() { 31waf_do_compile() {
30 ${S}/waf build ${@oe.utils.parallel_make_argument(d, '-j%d', limit=64)} 32 (cd ${S} && ./waf build ${@oe.utils.parallel_make_argument(d, '-j%d', limit=64)})
31} 33}
32 34
33waf_do_install() { 35waf_do_install() {
34 ${S}/waf install --destdir=${D} 36 (cd ${S} && ./waf install --destdir=${D})
35} 37}
36 38
37EXPORT_FUNCTIONS do_configure do_compile do_install 39EXPORT_FUNCTIONS do_configure do_compile do_install