Skip to contentSkip to conversation

buildhistory.bbclass: Only execute get_extra_sdkinfo when sdk is enabled

PATCH New Aníbal Limón 1 participant 1 message Mar 3, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 buildhistory.bbclass: Only execute get_extra_sdkinfo when sdk is enabled

If sdk ins't in BUILDHISTORY_FEATURES the get_extra_sdkinfo fails because no information about sdk is generated in buildhistory repo.

---
 meta/classes/buildhistory.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/classes/buildhistory.bbclass +3 -1
index 7251a2c..babcf57 100644
@@ -550,7 +550,9 @@ END
 python buildhistory_get_extra_sdkinfo() {
     import operator
     import math
-    if d.getVar('BB_CURRENTTASK') == 'populate_sdk_ext':
+
+    if d.getVar('BB_CURRENTTASK') == 'populate_sdk_ext' and \
+            "sdk" in (d.getVar('BUILDHISTORY_FEATURES') or "").split():
         tasksizes = {}
         filesizes = {}
         for root, _, files in os.walk(d.expand('${SDK_OUTPUT}/${SDKPATH}/sstate-cache')):
Signature · 1 line
2.1.4