public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] wic: allow sizes to be specified in sectors
@ 2024-02-17 20:51 Trevor Woerner
  2024-02-17 21:21 ` Trevor Woerner
  0 siblings, 1 reply; 2+ messages in thread
From: Trevor Woerner @ 2024-02-17 20:51 UTC (permalink / raw)
  To: openembedded-core

The partition layout of boot devices for some SBCs (e.g. Rockchip[1])
are specified in multiples of sectors (which are multiples of 512 bytes,
instead of 1024). Therefore allow wic to understand partition sizing
specified in sectors as well.

[1] https://opensource.rock-chips.com/wiki_Partitions

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 scripts/lib/wic/ksparser.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py
index 7ef3dc83ddce..35681bdc8d13 100644
--- a/scripts/lib/wic/ksparser.py
+++ b/scripts/lib/wic/ksparser.py
@@ -178,8 +178,8 @@ class KickStart():
         # --error, but since nesting mutually exclusive groups does not work,
         # ----extra-space/--overhead-factor are handled later
         sizeexcl = part.add_mutually_exclusive_group()
-        sizeexcl.add_argument('--size', type=sizetype("M"), default=0)
-        sizeexcl.add_argument('--fixed-size', type=sizetype("M"), default=0)
+        sizeexcl.add_argument('--size', type=sizetype("M", True), default=0)
+        sizeexcl.add_argument('--fixed-size', type=sizetype("M", True), default=0)
 
         part.add_argument('--source')
         part.add_argument('--sourceparams')
-- 
2.43.0.76.g1a87c842ece3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-17 21:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-17 20:51 [PATCH] wic: allow sizes to be specified in sectors Trevor Woerner
2024-02-17 21:21 ` Trevor Woerner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox