[oe-commits] Chris Larson : srctree: create stamps for executed functions

git version control git at git.openembedded.org
Sun Dec 12 01:27:35 UTC 2010


Module: openembedded.git
Branch: master
Commit: 80fff8a52d72f3777494a018c8ec777ba82719db
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=80fff8a52d72f3777494a018c8ec777ba82719db

Author: Chris Larson <chris_larson at mentor.com>
Date:   Sat Dec 11 18:25:18 2010 -0700

srctree: create stamps for executed functions

Slightly altered version of the patch from Martin Ambrose, whose work in
reporting this, investigating it, and determining a solution is much
appreciated.

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 classes/srctree.bbclass |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/classes/srctree.bbclass b/classes/srctree.bbclass
index 4884b62..1457e56 100644
--- a/classes/srctree.bbclass
+++ b/classes/srctree.bbclass
@@ -100,7 +100,7 @@ python () {
 # Manually run do_install & all of its deps
 python do_populate_sysroot_post () {
     from os.path import exists
-    from bb.build import exec_task, exec_func
+    from bb.build import exec_func, make_stamp
     from bb import note
 
     stamp = d.getVar("STAMP", True)
@@ -113,6 +113,9 @@ python do_populate_sysroot_post () {
         if not exists("%s.%s" % (stamp, task)):
             note("%s: executing task %s" % (d.getVar("PF", True), task))
             exec_func(task, d)
+            flags = d.getVarFlags(task)
+            if not flags.get('nostamp') and not flags.get('selfstamp'):
+                make_stamp(task, d)
 
     rec_exec_task("do_populate_sysroot", set())
 }





More information about the Openembedded-commits mailing list