summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/cooker.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index f31bca6f34..72ae8b09c7 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1174,9 +1174,12 @@ class BBCooker:
1174 """ 1174 """
1175 Setup any variables needed before starting a build 1175 Setup any variables needed before starting a build
1176 """ 1176 """
1177 t = time.gmtime()
1177 if not self.data.getVar("BUILDNAME", False): 1178 if not self.data.getVar("BUILDNAME", False):
1178 self.data.setVar("BUILDNAME", time.strftime('%Y%m%d%H%M')) 1179 self.data.setVar("BUILDNAME", "${DATE}${TIME}")
1179 self.data.setVar("BUILDSTART", time.strftime('%m/%d/%Y %H:%M:%S', time.gmtime())) 1180 self.data.setVar("BUILDSTART", time.strftime('%m/%d/%Y %H:%M:%S', t))
1181 self.data.setVar("DATE", time.strftime('%Y%m%d', t))
1182 self.data.setVar("TIME", time.strftime('%H%M%S', t))
1180 1183
1181 def matchFiles(self, bf): 1184 def matchFiles(self, bf):
1182 """ 1185 """
@@ -1275,7 +1278,7 @@ class BBCooker:
1275 taskdata = bb.taskdata.TaskData(self.configuration.abort) 1278 taskdata = bb.taskdata.TaskData(self.configuration.abort)
1276 taskdata.add_provider(self.data, self.recipecache, item) 1279 taskdata.add_provider(self.data, self.recipecache, item)
1277 1280
1278 buildname = self.data.getVar("BUILDNAME", False) 1281 buildname = self.data.getVar("BUILDNAME", True)
1279 bb.event.fire(bb.event.BuildStarted(buildname, [item]), self.expanded_data) 1282 bb.event.fire(bb.event.BuildStarted(buildname, [item]), self.expanded_data)
1280 1283
1281 # Execute the runqueue 1284 # Execute the runqueue