image.bbclass: No need to run most tasks except do_rootfs
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Oct 2011 22:09:49 +0000 (23:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Oct 2011 10:35:42 +0000 (11:35 +0100)
Running fetch/unpack/patch/compile/install etc. is pointless
since the only image task that does anything is the rootfs task.

Hence mark the useless tasks as noexec so we don't bother running them.

(From OE-Core rev: b3d1c440feb7fd7b3e3374ca528195ab9bd3a7ce)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/image.bbclass

index 0b75dce..05f4331 100644 (file)
@@ -315,4 +315,16 @@ rootfs_trim_schemas () {
 
 EXPORT_FUNCTIONS zap_root_password remove_init_link do_rootfs make_zimage_symlink_relative set_image_autologin rootfs_update_timestamp rootfs_no_x_startup
 
-addtask rootfs before do_build after do_install
+do_fetch[noexec] = "1"
+do_unpack[noexec] = "1"
+do_patch[noexec] = "1"
+do_configure[noexec] = "1"
+do_compile[noexec] = "1"
+do_install[noexec] = "1"
+do_populate_sysroot[noexec] = "1"
+do_package[noexec] = "1"
+do_package_write_ipk[noexec] = "1"
+do_package_write_deb[noexec] = "1"
+do_package_write_rpm[noexec] = "1"
+
+addtask rootfs before do_build