kernel bbclass: split do_compile into do_compile and do_compile_modules
authorKoen Kooi <koen@openembedded.org>
Sat, 9 Oct 2010 10:45:49 +0000 (12:45 +0200)
committerKoen Kooi <koen@openembedded.org>
Tue, 12 Oct 2010 14:30:13 +0000 (16:30 +0200)
This allows recipes to insert a custom task in between building *Image and modules

Signed-off-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Acked-by: Graeme Gregory <dp@xora.org.uk>
classes/kernel.bbclass

index cf6b8cd..83e3f44 100644 (file)
@@ -89,12 +89,17 @@ kernel_do_compile() {
                oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}"
        fi
        oe_runmake ${KERNEL_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() {
        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE