summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui
diff options
context:
space:
mode:
authorOlaf Mandel <o.mandel@menlosystems.com>2016-10-28 14:04:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-04 12:50:29 +0000
commit3570a8cf94354c8ab07513c304ebae33623fea33 (patch)
tree795275bcf2c81c21c1a1c65489438beed0910e28 /lib/bb/ui
parent0e675547166acc8650498e153bd3482420342c32 (diff)
downloadbitbake-contrib-3570a8cf94354c8ab07513c304ebae33623fea33.tar.gz
toasterui.py: warn if buildstats is missing
Like for buildhistory, warn if buildstats is missing from INHERIT. CC: Joshua Lock <joshua.g.lock@linux.intel.com> Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui')
-rw-r--r--lib/bb/ui/toasterui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index 9808f6bc8..b1b3684a8 100644
--- a/lib/bb/ui/toasterui.py
+++ b/lib/bb/ui/toasterui.py
@@ -168,6 +168,9 @@ def main(server, eventHandler, params):
logger.warning("buildhistory is not enabled. Please enable INHERIT += \"buildhistory\" to see image details.")
build_history_enabled = False
+ if not "buildstats" in inheritlist.split(" "):
+ logger.warning("buildstats is not enabled. Please enable INHERIT += \"buildstats\" to generate build statistics.")
+
if not params.observe_only:
params.updateFromServer(server)
params.updateToServer(server, os.environ.copy())