mirror of
https://git.yoctoproject.org/poky
synced 2026-02-08 09:46:38 +01:00
On some build hosts distros (e.g. Fedora 26) waf tries to be
smart about libdir detection and defaults to [EXEC_PREFIX/lib64].
This obviously is not what we want for 32-bit targets and usually
fails in the do_package phase:
WARNING: gstreamer1.0-plugins-imx-0.13.0-r0 do_package: QA Issue: gstreamer1.0-plugins-imx: Files/directories were installed but not shipped in any package:
/usr/lib64/libgstimxcommon.so.0
...
Depending on version, waf knows prefix or prefix, bindir and
libdir as default options. Explicitly pass the right set of
arguments.
(From OE-Core rev: eac21f981337bfaddb2d67161a1ff049158041ce)
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
(cherry picked from commit 923f91d8d8606141ce218927bc943f4f4f34bcdd)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
# avoids build breaks when using no-static-libs.inc
|
|
DISABLE_STATIC = ""
|
|
|
|
EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"
|
|
|
|
def get_waf_parallel_make(d):
|
|
pm = d.getVar('PARALLEL_MAKE')
|
|
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 ""
|
|
|
|
python waf_preconfigure() {
|
|
from distutils.version import StrictVersion
|
|
srcsubdir = d.getVar('S')
|
|
wafbin = os.path.join(srcsubdir, 'waf')
|
|
status, result = oe.utils.getstatusoutput(wafbin + " --version")
|
|
if status != 0:
|
|
bb.warn("Unable to execute waf --version, exit code %d. Assuming waf version without bindir/libdir support." % status)
|
|
return
|
|
version = result.split()[1]
|
|
if StrictVersion(version) >= StrictVersion("1.8.7"):
|
|
d.setVar("WAF_EXTRA_CONF", "--bindir=${bindir} --libdir=${libdir}")
|
|
}
|
|
|
|
do_configure[prefuncs] += "waf_preconfigure"
|
|
|
|
waf_do_configure() {
|
|
${S}/waf configure --prefix=${prefix} ${WAF_EXTRA_CONF} ${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
|