From: Darren Hart <dvhart@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
Koen Kooi <koen@dominion.thruhere.net>
Subject: Re: [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task
Date: Tue, 13 Dec 2011 16:15:18 -0800 [thread overview]
Message-ID: <4EE7EA96.4080806@linux.intel.com> (raw)
In-Reply-To: <1323793193-31090-1-git-send-email-dbaryshkov@gmail.com>
On 12/13/2011 08:19 AM, Dmitry Eremin-Solenikov wrote:
> There is no point in compiling kernel modules in a separate task, run
> right after do_compile. On the other hand merging those tasks will e.g.
> make icecc used also for modules compilation, etc.
This split was done intentionally to allow tasks to be inserted between
compile and compile_kernelmodules. See:
commit 509364eb634cf148b6ac1fb5f51924f4eb6a8991
Author: Koen Kooi <koen@dominion.thruhere.net>
Date: Tue Mar 15 11:25:01 2011 +0100
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>
If you want to be able to use icecc, can you pull the necessary logic
into compile_kernelmodules rather than reverting Koen's patch?
Thanks,
Darren
>
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
> meta/classes/kernel.bbclass | 6 +-----
> 1 files changed, 1 insertions(+), 5 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 3f2f75a..a75c199 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -89,17 +89,13 @@ kernel_do_compile() {
> if test "${KERNEL_IMAGETYPE_FOR_MAKE}.gz" = "${KERNEL_IMAGETYPE}"; then
> gzip -9c < "${KERNEL_IMAGETYPE_FOR_MAKE}" > "${KERNEL_OUTPUT}"
> fi
> -}
>
> -do_compile_kernelmodules() {
> - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
> if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
> - oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
> + oe_runmake modules CC="${KERNEL_CC}" LD="${KERNEL_LD}"
> else
> bbnote "no modules to compile"
> fi
> }
> -addtask compile_kernelmodules after do_compile before do_install
>
> kernel_do_install() {
> #
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
next prev parent reply other threads:[~2011-12-14 0:22 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-13 16:19 [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Dmitry Eremin-Solenikov
2011-12-13 16:19 ` [PATCH 2/9] kernel.bbclass: move uImage handling to separate task Dmitry Eremin-Solenikov
2011-12-14 21:20 ` Koen Kooi
2011-12-15 6:23 ` Dmitry Eremin-Solenikov
2011-12-15 13:55 ` Bruce Ashfield
2011-12-15 19:09 ` Tom Rini
2011-12-15 19:20 ` Bruce Ashfield
2011-12-13 16:19 ` [PATCH 3/9] bitbake.conf, core-image-minimal-initramfs: add INITRAMFS_FSTYPES Dmitry Eremin-Solenikov
2011-12-16 16:16 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 4/9] consolekit: fix sdk generation issues Dmitry Eremin-Solenikov
2011-12-15 14:58 ` Richard Purdie
2011-12-15 15:06 ` Koen Kooi
2011-12-16 1:56 ` Cui, Dexuan
2011-12-16 12:42 ` Dmitry Eremin-Solenikov
2011-12-15 16:20 ` Cui, Dexuan
2011-12-16 12:42 ` Dmitry Eremin-Solenikov
2011-12-16 15:25 ` Richard Purdie
2011-12-16 16:07 ` Dmitry Eremin-Solenikov
2011-12-16 16:46 ` Richard Purdie
2011-12-16 17:55 ` Dmitry Eremin-Solenikov
2011-12-13 16:19 ` [PATCH 5/9] Move check that all installed files are shipped into insane.bbclass Dmitry Eremin-Solenikov
2011-12-13 16:27 ` Phil Blundell
2011-12-13 16:52 ` Dmitry Eremin-Solenikov
2011-12-15 14:55 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 6/9] libgcc: reintroduce debug package, containing symbols Dmitry Eremin-Solenikov
2011-12-16 16:17 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 7/9] ncurses: drop empty dir to remove QA warning Dmitry Eremin-Solenikov
2011-12-13 19:43 ` Khem Raj
2011-12-13 16:19 ` [PATCH 8/9] readline: drop empty dir to shut up " Dmitry Eremin-Solenikov
2011-12-16 16:17 ` Richard Purdie
2011-12-13 16:19 ` [PATCH 9/9] libatomic-ops: drop directory with documentation to remove " Dmitry Eremin-Solenikov
2011-12-13 19:48 ` Richard Purdie
2011-12-13 22:07 ` Dmitry Eremin-Solenikov
2011-12-15 12:26 ` Richard Purdie
2011-12-13 16:22 ` [PATCH 1/9] kernel.bbclass: compile kernel and modules in a single task Phil Blundell
2011-12-13 16:46 ` Dmitry Eremin-Solenikov
2011-12-14 0:15 ` Darren Hart [this message]
2011-12-14 0:17 ` Dmitry Eremin-Solenikov
2011-12-14 0:19 ` Darren Hart
2011-12-15 9:27 ` Koen Kooi
2011-12-15 13:57 ` Bruce Ashfield
2011-12-15 14:56 ` Richard Purdie
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=4EE7EA96.4080806@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=dbaryshkov@gmail.com \
--cc=koen@dominion.thruhere.net \
--cc=openembedded-core@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