diff options
author | Koen Kooi <koen@dominion.thruhere.net> | 2011-03-15 11:25:01 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-15 13:20:43 +0000 |
commit | 509364eb634cf148b6ac1fb5f51924f4eb6a8991 (patch) | |
tree | 152dec3de2dc6238f122a75b0a411ffd879c32b8 /meta/classes/kernel.bbclass | |
parent | ae923838effd04f45f27efda5ffbb14bfc84cdf2 (diff) | |
download | poky-509364eb634cf148b6ac1fb5f51924f4eb6a8991.tar.gz |
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
>From OE .dev revision 615876fe218dc3feb4a3df9e6546a7b1a6376800
(From OE-Core rev: a2cc999d663407d17f41e1b0344361944993fa86)
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>
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r-- | meta/classes/kernel.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index a1b1354788..a9a8f4fe9b 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -77,12 +77,17 @@ kernel_do_compile() { | |||
77 | oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 77 | oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
78 | fi | 78 | fi |
79 | oe_runmake ${KERNEL_IMAGETYPE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 79 | oe_runmake ${KERNEL_IMAGETYPE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
80 | } | ||
81 | |||
82 | do_compile_kernelmodules() { | ||
83 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE | ||
80 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then | 84 | if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then |
81 | oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 85 | oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
82 | else | 86 | else |
83 | oenote "no modules to compile" | 87 | oenote "no modules to compile" |
84 | fi | 88 | fi |
85 | } | 89 | } |
90 | addtask compile_kernelmodules after do_compile before do_install | ||
86 | 91 | ||
87 | kernel_do_install() { | 92 | kernel_do_install() { |
88 | # | 93 | # |