generic-poky/meta/classes/waf.bbclass
Fabio Berton 54bfbcc6c9 waf.bbclass: Remove --disable-static from EXTRA_OECONF
As of commit OE-Core:773c9e18071d71454473dd81aff911104a2e9bc6
EXTRA_OECONF is appended with the option --disable-static on
DISABLE_STATIC variable and this cause the error:

    waf: error: no such option: --disable-static

So, we need to disable this option.

(From OE-Core rev: cc100a291853c89efbf2c0c04bd9626a6546f4c7)

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-19 15:33:02 +00:00

39 lines
909 B
Text

# avoids build breaks when using no-static-libs.inc
DISABLE_STATIC = ""
def get_waf_parallel_make(d):
pm = d.getVar('PARALLEL_MAKE', True)
if pm:
# look for '-j' and throw other options (e.g. '-l') away
# because they might have different meaning in bjam
pm = pm.split()
while pm:
v = None
opt = pm.pop(0)
if opt == '-j':
v = pm.pop(0)
elif opt.startswith('-j'):
v = opt[2:].strip()
else:
v = None
if v:
v = min(64, int(v))
return '-j' + str(v)
return ""
waf_do_configure() {
${S}/waf configure --prefix=${prefix} ${EXTRA_OECONF}
}
waf_do_compile() {
${S}/waf build ${@get_waf_parallel_make(d)}
}
waf_do_install() {
${S}/waf install --destdir=${D}
}
EXPORT_FUNCTIONS do_configure do_compile do_install