Patchwork native: Use deltask to remove tasks which have no purpose

login
register
mail settings
Submitter Richard Purdie
Date Dec. 18, 2013, 10:46 a.m.
Message ID <1387363593.6402.25.camel@ted>
Download mbox | patch
Permalink /patch/63497/
State Accepted
Commit 14471d201b40820f535226f99159b3a7a85df0cd
Headers show

Comments

Richard Purdie - Dec. 18, 2013, 10:46 a.m.
core-image-sato has 47703 inter task dependencies before this patch
and 29883 afterwards which is a significant worthwhile task graph
simplification.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Note: This patch depends on new bitbake functionality so we'll have to
bump the bitbake version requirement before we can do this.

Patch

diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index b2d85ef..5a318d2 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -151,11 +151,12 @@  python native_virtclass_handler () {
 addhandler native_virtclass_handler
 native_virtclass_handler[eventmask] = "bb.event.RecipePreFinalise"
 
-do_package[noexec] = "1"
-do_packagedata[noexec] = "1"
-do_package_write_ipk[noexec] = "1"
-do_package_write_deb[noexec] = "1"
-do_package_write_rpm[noexec] = "1"
+deltask package
+deltask packagedata
+deltask package_write_ipk
+deltask package_write_deb
+deltask package_write_rpm
+deltask package_write
 
 do_packagedata[stamp-extra-info] = ""
 do_populate_sysroot[stamp-extra-info] = ""