From: Paul Eggleton Date: Fri, 19 Dec 2014 11:41:52 +0000 (+0000) Subject: classes/externalsrc: set do_compile as nostamp X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~31787 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e734e12fd1478cdacdadf4e0fae5247cb70b9fb1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass index 2ac62747a2f..4e429d78d81 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') }