[oe-commits] Paul Eggleton : classes/externalsrc: set do_compile as nostamp

git at git.openembedded.org git at git.openembedded.org
Tue Dec 23 10:18:45 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: e734e12fd1478cdacdadf4e0fae5247cb70b9fb1
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=e734e12fd1478cdacdadf4e0fae5247cb70b9fb1

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Fri Dec 19 11:41:52 2014 +0000

classes/externalsrc: set do_compile as nostamp

Most of the time what you want when using this class is for do_compile
to execute more than just once - every time the source changes would be
ideal, but that's a little tricky to accomplish. Thus, set do_compile as
nostamp to get something close.  Note that in order to be effective this
also requires the change to bitbake that causes nostamp task signatures
to change on each execution.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/externalsrc.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index 2ac6274..4e429d7 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -49,5 +49,8 @@ python () {
 
         for task in d.getVar("SRCTREECOVEREDTASKS", True).split():
             bb.build.deltask(task, d)
+
+        # Ensure compilation happens every time
+        d.setVarFlag('do_compile', 'nostamp', '1')
 }
 



More information about the Openembedded-commits mailing list