summaryrefslogtreecommitdiff
path: root/meta
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 08:08:19 +0000
commit7b73473bc9d19331a103cf4958059d3ceb84b486 (patch)
treef88ab2607095943ac11f023362ea0fbb1852e470 /meta
parent26f8060c3475ec988194b2163e422ba4e776fd8b (diff)
downloadopenembedded-core-7b73473bc9d19331a103cf4958059d3ceb84b486.tar.gz
openembedded-core-7b73473bc9d19331a103cf4958059d3ceb84b486.tar.bz2
openembedded-core-7b73473bc9d19331a103cf4958059d3ceb84b486.zip
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().) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 () {
for task in d.getVar("SRCTREECOVEREDTASKS", True).split():
bb.build.deltask(task, d)
+ d.prependVarFlag('do_compile', 'prefuncs', "externalsrc_compile_prefunc ")
+
# Ensure compilation happens every time
d.setVarFlag('do_compile', 'nostamp', '1')
}
+python externalsrc_compile_prefunc() {
+ # Make it obvious that this is happening, since forgetting about it could lead to much confusion
+ bb.warn('Compiling %s from external source %s' % (d.getVar('PN', True), d.getVar('EXTERNALSRC', True)))
+}