[bitbake-devel] [PATCH 1/1] toaster: add buildstats to toaster config file
Alex DAMIAN
alexandru.damian at intel.com
Wed Dec 18 19:26:51 UTC 2013
From: Alexandru DAMIAN <alexandru.damian at intel.com>
Toaster needs buildstats to be enabled in order to
be able to collect task running stats. This patch
adds buildstats to the running configuration in toaster mode.
Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
---
bin/toaster | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/bin/toaster b/bin/toaster
index 38e71ac..d6c3175 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -61,10 +61,13 @@ function webserverStartAll()
}
# Helper functions to add a special configuration file
+function initConfiguration()
+{
+ echo "#Created by toaster start script" > ${BUILDDIR}/conf/$1
+}
function addtoConfiguration()
{
- echo "#Created by toaster start script" > ${BUILDDIR}/conf/$2
echo $1 >> ${BUILDDIR}/conf/$2
}
@@ -167,7 +170,9 @@ fi
case $CMD in
start )
start_success=1
+ initConfiguration toaster.conf
addtoConfiguration "INHERIT+=\"toaster buildhistory\"" toaster.conf
+ addtoConfiguration "USER_CLASSES+=\"buildstats\"" toaster.conf
if ! webserverStartAll; then
echo "Failed ${CMD}."
return 4
--
1.8.3.2
More information about the bitbake-devel
mailing list