From patchwork Tue Dec 13 16:19:45 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/9] kernel.bbclass: compile kernel and modules in a single task Date: Tue, 13 Dec 2011 16:19:45 -0000 From: lumag X-Patchwork-Id: 16821 Message-Id: <1323793193-31090-1-git-send-email-dbaryshkov@gmail.com> To: openembedded-core@lists.openembedded.org There is no point in compiling kernel modules in a separate task, run right after do_compile. On the other hand merging those tasks will e.g. make icecc used also for modules compilation, etc. Signed-off-by: Dmitry Eremin-Solenikov --- meta/classes/kernel.bbclass | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 3f2f75a..a75c199 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -89,17 +89,13 @@ kernel_do_compile() { if test "${KERNEL_IMAGETYPE_FOR_MAKE}.gz" = "${KERNEL_IMAGETYPE}"; then gzip -9c < "${KERNEL_IMAGETYPE_FOR_MAKE}" > "${KERNEL_OUTPUT}" fi -} -do_compile_kernelmodules() { - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then - oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}" + oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}" else bbnote "no modules to compile" fi } -addtask compile_kernelmodules after do_compile before do_install kernel_do_install() { #