From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules
Date: Sat, 09 Oct 2010 13:24:17 +0200 [thread overview]
Message-ID: <i8pjd1$i71$1@dough.gmane.org> (raw)
In-Reply-To: <1286621826-9198-1-git-send-email-koen@openembedded.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
A word of warning:
If you have rm_work enabled you need to clean the kernel since bitbake
doesn't know that the source is gone when trying to run the new
compile_modules task
On 09-10-10 12:57, Koen Kooi wrote:
> 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFMsFDhMkyGM64RGpERAgtDAJ9UAObRieVcn+AkuqyVaKma/+6UQACgtUtd
EwXwC1DrKgNnjk5FKxzx++M=
=qAhm
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2010-10-09 11:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-09 10:57 [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules Koen Kooi
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 ` Koen Kooi [this message]
2010-10-09 12:55 ` [PATCH 1/2] kernel bbclass: split do_compile into do_compile and do_compile_modules 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='i8pjd1$i71$1@dough.gmane.org' \
--to=k.kooi@student.utwente.nl \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox