mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
Scons supports -jX parallel make, so let's use that. A small scale test of a few recipes shows no failures! (From OE-Core rev: a3ad3602b0e8d4a6387cac3f118722af1a0781eb) Signed-off-by: Koen Kooi <koen.kooi@linaro.org> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
16 lines
462 B
Plaintext
16 lines
462 B
Plaintext
DEPENDS += "python-scons-native"
|
|
|
|
EXTRA_OESCONS ?= ""
|
|
|
|
scons_do_compile() {
|
|
${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} PREFIX=${prefix} prefix=${prefix} ${EXTRA_OESCONS} || \
|
|
bbfatal "scons build execution failed."
|
|
}
|
|
|
|
scons_do_install() {
|
|
${STAGING_BINDIR_NATIVE}/scons PREFIX=${D}${prefix} prefix=${D}${prefix} install ${EXTRA_OESCONS}|| \
|
|
bbfatal "scons install execution failed."
|
|
}
|
|
|
|
EXPORT_FUNCTIONS do_compile do_install
|