[oe-commits] Paul Eggleton : classes/externalsrc: show a warning on compiling
git at git.openembedded.org
git at git.openembedded.org
Mon Feb 23 17:36:15 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: 7b73473bc9d19331a103cf4958059d3ceb84b486
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=7b73473bc9d19331a103cf4958059d3ceb84b486
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date: Thu Feb 19 16:39:54 2015 +0000
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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/externalsrc.bbclass | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index 234bd8d..25f0be9 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)))
+}
More information about the Openembedded-commits
mailing list