[OE-core] [PATCH] kernel.bbclass: Allow do_compile_kernelmodules to use PARALLEL_MAKE

Khem Raj raj.khem at gmail.com
Sat Dec 10 23:28:12 UTC 2011


On Fri, Dec 9, 2011 at 4:34 PM, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> Without this we don't take advantage of any configured multiple CPU
> cores which seems a shame.
>
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
> ---
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index d0cc279..120a524 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -89,7 +89,7 @@ kernel_do_compile() {
>  do_compile_kernelmodules() {
>        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
>        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
>                bbnote "no modules to compile"
>        fi


in base.bbclass oe_runmake says

${MAKE} ${EXTRA_OEMAKE} "$@"

and

conf/bitbake.conf says

EXTRA_OEMAKE_prepend_task-compile = "${PARALLEL_MAKE} "

hmmm so we dont parallel make if task is not called do_compile ?




More information about the Openembedded-core mailing list