Openembedded Core Discussions
 help / color / mirror / Atom feed
* image.bbclass: No need to run most tasks except do_rootfs
@ 2011-10-06 14:19 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2011-10-06 14:19 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 0b75dce..05f4331 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -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





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-06 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-06 14:19 image.bbclass: No need to run most tasks except do_rootfs Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox