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>
This commit is contained in:
parent
d4af8f0268
commit
550d455fcd
|
@ -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)))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue