mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 18:49:33 +02:00
kernel.bbclass: Allow do_compile_kernelmodules to use PARALLEL_MAKE
Without this we don't take advantage of any configured multiple CPU cores which seems a shame. (From OE-Core rev: 10b354c6ce7bac3b4cce5e6a649d4fd3ceca235b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -89,7 +89,7 @@ kernel_do_compile() {
|
|||||||
do_compile_kernelmodules() {
|
do_compile_kernelmodules() {
|
||||||
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
|
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
|
||||||
if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
|
if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
|
||||||
oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
|
oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
|
||||||
else
|
else
|
||||||
bbnote "no modules to compile"
|
bbnote "no modules to compile"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user