From: Koen Kooi Date: Sat, 9 Oct 2010 10:45:49 +0000 (+0200) Subject: kernel bbclass: split do_compile into do_compile and do_compile_modules X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=615876fe218dc3feb4a3df9e6546a7b1a6376800;p=openembedded.git kernel bbclass: split do_compile into do_compile and do_compile_modules This allows recipes to insert a custom task in between building *Image and modules Signed-off-by: Koen Kooi Acked-by: Frans Meulenbroeks Acked-by: Graeme Gregory --- diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass index cf6b8cd1a6..83e3f44fee 100644 --- a/classes/kernel.bbclass +++ b/classes/kernel.bbclass @@ -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