[oe-commits] Roman I Khimov : image.bbclass: reorder do_rootfs

GIT User account git at amethyst.openembedded.net
Tue Apr 21 20:51:52 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 736c06e8d8efa79d3d2bc512f13a51f0f63412e2
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=736c06e8d8efa79d3d2bc512f13a51f0f63412e2

Author: Roman I Khimov <khimov at altell.ru>
Date:   Sun Mar 29 21:59:57 2009 +0000

image.bbclass: reorder do_rootfs

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.

Signed-off-by: Koen Kooi <koen at openembedded.org>

---

 classes/image.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/classes/image.bbclass b/classes/image.bbclass
index fd0df4d..3a0bc32 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -106,6 +106,7 @@ do_rootfs[nostamp] = "1"
 do_rootfs[dirs] = "${TOPDIR}"
 do_rootfs[lockfiles] = "${IMAGE_ROOTFS}.lock"
 do_build[nostamp] = "1"
+do_install[nostamp] = "1"
 
 # Must call real_do_rootfs() from inside here, rather than as a separate
 # task, so that we have a single fakeroot context for the whole process.
@@ -234,5 +235,5 @@ rootfs_update_timestamp () {
 # export the zap_root_password, create_etc_timestamp and remote_init_link
 EXPORT_FUNCTIONS zap_root_password create_etc_timestamp remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp
 
-addtask rootfs before do_build after do_install
+addtask rootfs after do_compile before do_install
 addtask deploy_to after do_rootfs





More information about the Openembedded-commits mailing list