From 30238161a6ad7bb6f7a91d589567e1dd5b0196c7 Mon Sep 17 00:00:00 2001
From: Richard Purdie <rpurdie@linux.intel.com>
Date: Wed, 7 Jan 2009 16:31:48 +0000
Subject: image.bbclass: Generate the image after running the kernel modules
 and ldconfig commands, not before

---
 meta/classes/image.bbclass | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'meta/classes/image.bbclass')

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index e3bb748dd..f16dcc20f 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -109,11 +109,6 @@ fakeroot do_rootfs () {
 
 	insert_feed_uris
 
-	${IMAGE_PREPROCESS_COMMAND}
-
-	ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{print ${IMAGE_EXTRA_SPACE} + $1}'`
-	${@get_imagecmds(d)}
-
 	# Run ldconfig on the image to create a valid cache 
 	# (new format for cross arch compatibility)
 	ldconfig -r ${IMAGE_ROOTFS} -c new
@@ -129,6 +124,11 @@ fakeroot do_rootfs () {
 		${TARGET_SYS}-depmod-2.6 -a -b ${IMAGE_ROOTFS} -F ${STAGING_KERNEL_DIR}/System.map-$KERNEL_VERSION $KERNEL_VERSION
 	fi
 
+	${IMAGE_PREPROCESS_COMMAND}
+
+	ROOTFS_SIZE=`du -ks ${IMAGE_ROOTFS}|awk '{print ${IMAGE_EXTRA_SPACE} + $1}'`
+	${@get_imagecmds(d)}
+
 	${IMAGE_POSTPROCESS_COMMAND}
 	
 	${MACHINE_POSTPROCESS_COMMAND}
-- 
cgit v1.2.3