diff options
-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 () { | |||
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 | ||
77 | python 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 | } | ||