diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-02-19 16:39:54 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-23 17:35:28 +0000 |
commit | 550d455fcd92639287fb4cf80d077b663b48f33d (patch) | |
tree | 65e494451180f298b6d6345a5ec2e0a527601356 | |
parent | d4af8f0268a824f5a4f098c507a0d16ed29bbc58 (diff) | |
download | openembedded-core-contrib-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.bbclass | 6 |
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))) +} |