summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/buildstats.bbclass11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/classes/buildstats.bbclass b/meta/classes/buildstats.bbclass
index f042dd30fa..0acf516739 100644
--- a/meta/classes/buildstats.bbclass
+++ b/meta/classes/buildstats.bbclass
@@ -67,7 +67,7 @@ python run_buildstats () {
67 import bb.build 67 import bb.build
68 import bb.event 68 import bb.event
69 import bb.data 69 import bb.data
70 import time, subprocess 70 import time, subprocess, platform
71 71
72 if isinstance(e, bb.event.BuildStarted): 72 if isinstance(e, bb.event.BuildStarted):
73 ############################################## 73 ##############################################
@@ -90,9 +90,12 @@ python run_buildstats () {
90 build_time = os.path.join(bsdir, "build_stats") 90 build_time = os.path.join(bsdir, "build_stats")
91 # write start of build into build_time 91 # write start of build into build_time
92 file = open(build_time,"a") 92 file = open(build_time,"a")
93 # We do this here because subprocess within BuildStarted is messy 93 host_info = platform.uname()
94 #host_info = subprocess.Popen(["uname", "-a"], stdout=subprocess.PIPE).stdout.read() 94 file.write("Host Info: ")
95 #file.write("Host Info: %s" % host_info) 95 for x in host_info:
96 if x:
97 file.write(x + " ")
98 file.write("\n")
96 file.write("Build Started: %0.2f \n" % time.time()) 99 file.write("Build Started: %0.2f \n" % time.time())
97 file.close() 100 file.close()
98 101