summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-02-19 16:39:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-23 17:35:28 +0000
commit550d455fcd92639287fb4cf80d077b663b48f33d (patch)
tree65e494451180f298b6d6345a5ec2e0a527601356
parentd4af8f0268a824f5a4f098c507a0d16ed29bbc58 (diff)
downloadpoky-550d455fcd92639287fb4cf80d077b663b48f33d.tar.gz
classes/externalsrc: show a warning on compiling
Make sure there's no chance of anyone forgetting they have a recipe set up for externalsrc; otherwise you could get confused about what is going on. (With our default logging setup we can't make it a note because the UI doesn't forward those; otherwise I would have used bb.note().) (From OE-Core rev: 7b73473bc9d19331a103cf4958059d3ceb84b486) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/externalsrc.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index 234bd8dedd..25f0be96a5 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -68,7 +68,13 @@ python () {
68 for task in d.getVar("SRCTREECOVEREDTASKS", True).split(): 68 for task in d.getVar("SRCTREECOVEREDTASKS", True).split():
69 bb.build.deltask(task, d) 69 bb.build.deltask(task, d)
70 70
71 d.prependVarFlag('do_compile', 'prefuncs', "externalsrc_compile_prefunc ")
72
71 # Ensure compilation happens every time 73 # Ensure compilation happens every time
72 d.setVarFlag('do_compile', 'nostamp', '1') 74 d.setVarFlag('do_compile', 'nostamp', '1')
73} 75}
74 76
77python externalsrc_compile_prefunc() {
78 # Make it obvious that this is happening, since forgetting about it could lead to much confusion
79 bb.warn('Compiling %s from external source %s' % (d.getVar('PN', True), d.getVar('EXTERNALSRC', True)))
80}