From: Koen Kooi <koen.kooi@gmail.com>
To: openembedded-devel@lists.openembedded.org
Cc: Koen Kooi <koen@openembedded.org>
Subject: [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules
Date: Sat, 9 Oct 2010 12:57:05 +0200 [thread overview]
Message-ID: <1286621826-9198-1-git-send-email-koen@openembedded.org> (raw)
This allows recipes to insert a custom task in between building *Image and modules
Signed-off-by: Koen Kooi <koen@openembedded.org>
---
classes/kernel.bbclass | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index cf6b8cd..5d5e93b 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -89,12 +89,16 @@ kernel_do_compile() {
oe_runmake dep CC="${KERNEL_CC}" LD="${KERNEL_LD}"
fi
oe_runmake ${KERNEL_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}"
+}
+
+kernel_do_compile_modules() {
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_modules after do_compile before do_install
kernel_do_install() {
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
--
1.6.6.1
next reply other threads:[~2010-10-09 10:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-09 10:57 Koen Kooi [this message]
2010-10-09 10:57 ` [PATCH 2/2] kernel bbclass: make 'kernel-modules' meta-package use RRECOMMENDS to please insane.bbclass Koen Kooi
2010-10-09 11:24 ` [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules Koen Kooi
2010-10-09 12:55 ` Koen Kooi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1286621826-9198-1-git-send-email-koen@openembedded.org \
--to=koen.kooi@gmail.com \
--cc=koen@openembedded.org \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.