[bitbake-devel] [PATCH] toasterui.py: warn if buildstats is missing

Olaf Mandel o.mandel at menlosystems.com
Thu Oct 27 16:36:37 UTC 2016


Like for buildhistory and INHERIT, warn if buildstats is missing
from USER_CLASSES.

Signed-off-by: Olaf Mandel <o.mandel at menlosystems.com>
---
 lib/bb/ui/toasterui.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/bb/ui/toasterui.py b/lib/bb/ui/toasterui.py
index 9808f6b..2687faf 100644
--- a/lib/bb/ui/toasterui.py
+++ b/lib/bb/ui/toasterui.py
@@ -168,6 +168,11 @@ def main(server, eventHandler, params):
         logger.warning("buildhistory is not enabled. Please enable INHERIT += \"buildhistory\" to see image details.")
         build_history_enabled = False
 
+    userclasseslist, _ = server.runCommand(["getVariable", "USER_CLASSES"])
+
+    if not "buildstats" in userclasseslist.split(" "):
+        logger.warning("buildstats is not enabled. Please enable USER_CLASSES += \"buildstats\" to generate build statistics.")
+
     if not params.observe_only:
         params.updateFromServer(server)
         params.updateToServer(server, os.environ.copy())
-- 
2.1.4




More information about the bitbake-devel mailing list