summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-02-04 23:45:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-08 08:00:27 +0000
commit602d90d57a55f240b81ad286224c5cc39460e3c1 (patch)
treec921f7a66fce1692281ff2ca6f8d2d68e735250a /scripts/lib/wic/plugins
parent7c3b9a9a9fe0bcad7d7d3f0af84d6eb8546904f7 (diff)
downloadpoky-602d90d57a55f240b81ad286224c5cc39460e3c1.tar.gz
wic: use kB for the partitions size
Use kB instead of MB for the partition size to get a better granularity. This is needed on some SoC (i.mx, omap) where it is necessary to create partitions as small as 64kB. Keep the backward compatibility by assuming MB when no unit is provided. (From OE-Core rev: 3d4da9186016d54b76ad2fa710646de253f0f063) Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Tested-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl> Acked-by: Tom Zanussi <tom.zanussi@linux.intel.com> Tested-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-efi.py2
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-pcbios.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-efi.py b/scripts/lib/wic/plugins/source/bootimg-efi.py
index e4067b6dbf..ee57881e90 100644
--- a/scripts/lib/wic/plugins/source/bootimg-efi.py
+++ b/scripts/lib/wic/plugins/source/bootimg-efi.py
@@ -228,7 +228,7 @@ class BootimgEFIPlugin(SourcePlugin):
228 chmod_cmd = "chmod 644 %s" % bootimg 228 chmod_cmd = "chmod 644 %s" % bootimg
229 exec_cmd(chmod_cmd) 229 exec_cmd(chmod_cmd)
230 230
231 du_cmd = "du -Lbms %s" % bootimg 231 du_cmd = "du -Lbks %s" % bootimg
232 out = exec_cmd(du_cmd) 232 out = exec_cmd(du_cmd)
233 bootimg_size = out.split()[0] 233 bootimg_size = out.split()[0]
234 234
diff --git a/scripts/lib/wic/plugins/source/bootimg-pcbios.py b/scripts/lib/wic/plugins/source/bootimg-pcbios.py
index 8a1aca1ad1..c4786a6e0e 100644
--- a/scripts/lib/wic/plugins/source/bootimg-pcbios.py
+++ b/scripts/lib/wic/plugins/source/bootimg-pcbios.py
@@ -190,7 +190,7 @@ class BootimgPcbiosPlugin(SourcePlugin):
190 chmod_cmd = "chmod 644 %s" % bootimg 190 chmod_cmd = "chmod 644 %s" % bootimg
191 exec_cmd(chmod_cmd) 191 exec_cmd(chmod_cmd)
192 192
193 du_cmd = "du -Lbms %s" % bootimg 193 du_cmd = "du -Lbks %s" % bootimg
194 out = exec_cmd(du_cmd) 194 out = exec_cmd(du_cmd)
195 bootimg_size = out.split()[0] 195 bootimg_size = out.split()[0]
196 196