[oe] Kernel image stagging [was Re: [PATCH] kernel.bbclass: Stage the raw zImage and modules tarball for inclusion in pstage

Tom Rini tom_rini at mentor.com
Tue Feb 23 19:23:20 UTC 2010


On Tue, 2010-02-23 at 15:55 -0300, Otavio Salvador wrote:
> Hello Chris and others,
> 
> Your patch looks fine however this has made me thing another issue.
> 
> For me, it looks like the image ought to have be grabed from the package, at
> image building time, not at kernel package building time.
> 
> This solves a problem when we remove the image deploy dir and then need to
> rebuild the kernel package to get the image there again.
> 
> Do you think it makes sense?

I should note that Chris didn't notice that I had already just pushed
this upstream.  And this neatly dovetails into a conversation I was
having with Chris anyhow (about another change we have that doesn't make
sense anymore).  There's two cases for how the kernel image is used:
- On the target, ${feed install} kernel-image, write to flash, whatever.
- On the host, user loads image to target, writes to flash in
bootloader.

In the second case, why do I want to waste space with an image on the
rootfs that I don't need?  Today, that image goes from deploy dir to
<however we give stuff to the end user> or right to the device.  I could
see, however, adding images to a defined place in meta-toolchain so that
this isn't an issue anymore and we could stop putting raw kernel stuff
into the deploy directory.

-- 
Tom Rini <tom_rini at mentor.com>
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list