[oe] [PATCHv3 1/3] kernel bbclass: split do_compile into do_compile and do_compile_modules

Paul Menzel paulepanter at users.sourceforge.net
Tue Oct 12 14:26:56 UTC 2010


Am Dienstag, den 12.10.2010, 10:09 +0200 schrieb Koen Kooi:
> ping
> 
> On 11-10-10 09:55, Koen Kooi wrote:
> > This allows recipes to insert a custom task in between building *Image and modules
> > 
> > Signed-off-by: Koen Kooi <koen at openembedded.org>
> > ---
> >  classes/kernel.bbclass |    5 +++++
> >  1 files changed, 5 insertions(+), 0 deletions(-)
> > 
> > diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
> > index cf6b8cd..83e3f44 100644
> > --- a/classes/kernel.bbclass
> > +++ b/classes/kernel.bbclass
> > @@ -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

I am using `MACHINE = "beagleboard"`.

I did

	$ bitbake -c clean virtual/kernel
	$ bitbake virtual/kernel

with your patches applied for `minimal-{libc,eglibc}` and I did not see
any regressions.

The build for `angstrom-2010.x` is still running. `angstrom-2008.1`
hangs right now, though. Could you test that again, please. I will take
a look in a few more hours, if the build succeeded.

	NOTE: Running task 892 of 911 (ID: 13, /home/paul/oe/openembedded/recipes/linux)
	NOTE: package linux-omap-psp-2.6.32-r90+gitra6bad4464f985fdd3bed72e1b82dcbfc004d…
	NOTE: package linux-omap-psp-2.6.32-r90+gitra6bad4464f985fdd3bed72e1b82dcbfc004d…
        

Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20101012/04df2f7d/attachment-0002.sig>


More information about the Openembedded-devel mailing list