]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel bbclass: split do_compile into do_compile and do_compile_modules
authorKoen Kooi <koen@dominion.thruhere.net>
Tue, 15 Mar 2011 10:25:01 +0000 (11:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Mar 2011 11:17:49 +0000 (11:17 +0000)
This allows recipes to insert a custom task in between building *Image and modules

>From OE .dev revision 615876fe218dc3feb4a3df9e6546a7b1a6376800

Signed-off-by: Koen Kooi <koen@openembedded.org>
Acked-by: Graeme Gregory <dp@xora.org.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index a1b135478831f42fcf43080bfcb5f2e177d8b586..a9a8f4fe9b77bb7dbec5b6c3dd46dadecbcc79b8 100644 (file)
@@ -77,12 +77,17 @@ kernel_do_compile() {
                oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}"
        fi
        oe_runmake ${KERNEL_IMAGETYPE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}"
+}
+
+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}"
        else
                oenote "no modules to compile"
        fi
 }
+addtask compile_kernelmodules after do_compile before do_install
 
 kernel_do_install() {
        #