[oe-commits] [openembedded-core] 02/24: buildhistory.bbclass: Only execute get_extra_sdkinfo when sdk is enabled

git at git.openembedded.org git at git.openembedded.org
Wed Mar 8 11:27:44 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit e6a0ea6146171635c49b18e00b4b11a9a7ff20ee
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: Fri Mar 3 17:01:07 2017 -0600

    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.
    
    Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/buildhistory.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index ee6addd..bf5789e 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -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')):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list