summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-01-05 16:43:21 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-07 13:40:09 +0000
commite6b1840ee9aeb933f86fd2a92a90b94c1bc9db7c (patch)
tree8185b04db518d991d53cafe70c0f46bf473f9b11 /meta
parentd5dc09e65e85d378e98baff58833c3fe27bb7471 (diff)
downloadopenembedded-core-e6b1840ee9aeb933f86fd2a92a90b94c1bc9db7c.tar.gz
openembedded-core-e6b1840ee9aeb933f86fd2a92a90b94c1bc9db7c.tar.bz2
openembedded-core-e6b1840ee9aeb933f86fd2a92a90b94c1bc9db7c.zip
classes/buildhistory: actually use KiB in extensible SDK sizes files
I was using bytes here for the sizes and writing out KiB as the suffix. Change it to actually write out size values in KiB. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/buildhistory.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 943c8d7d0c..4153e58792 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -531,13 +531,14 @@ END
python buildhistory_get_extra_sdkinfo() {
import operator
+ import math
if d.getVar('BB_CURRENTTASK', True) == 'populate_sdk_ext':
tasksizes = {}
filesizes = {}
for root, _, files in os.walk('${SDK_OUTPUT}/${SDKPATH}/sstate-cache'):
for fn in files:
if fn.endswith('.tgz'):
- fsize = os.path.getsize(os.path.join(root, fn))
+ fsize = int(math.ceil(float(os.path.getsize(os.path.join(root, fn))) / 1024))
task = fn.rsplit(':', 1)[1].split('_', 1)[1].split('.')[0]
origtotal = tasksizes.get(task, 0)
tasksizes[task] = origtotal + fsize