Skip to contentSkip to conversation

kernel bbclass: split do_compile into do_compile and do_compile_modules

PATCH Superseded Koen Kooi 1 participant 1 message Oct 9, 2010

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/3 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

---
 classes/kernel.bbclass |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
classes/kernel.bbclass +5 -0
index cf6b8cd..83e3f44 100644
@@ -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
Signature · 1 line
1.6.6.1