[oe] [PATCH] image.bbclass: reorder do_rootfs

Roman I Khimov khimov at altell.ru
Wed Apr 22 04:56:14 UTC 2009


On Wednesday 22 April 2009 00:41:32 Tom Rini wrote:
> On Mon, Mar 30, 2009 at 11:59:57AM +0400, Roman I Khimov wrote:
> > Places do_rootfs function before do_install in image creation process.
> >
> > This change allows multiimage builds, when one image depends on another
> > (before that second image creation raced with do_rootfs for the first
> > one) and uses it for some purpose.
> >
> > Multiimage builds are useful in situations like creating an installer
> > image with initramfs (built in OE) and an image of the target FS (also
> > built in OE) or for building virtualized system images to be placed on
> > target FS.
>
> So, the problem we have happen is that opkg (or dpkg or ...) gets into a
> race because >1 image are trying to muck around in ${TMPDIR}/rootfs,
> right?  How does this fix the problem?

The problem was in dependencies between images, currently I have one project 
with 4 images that depends and packs like this

   /-> 2 -> 3
1-+
   \-> 4

What you're talking about is another problem and in another project that I'm 
converting now to OE I'll try to do something like

IMAGE_ROOTFS = "${TMPDIR}/rootfs.${PN}"

to have parallel image builds.




More information about the Openembedded-devel mailing list