diff options
author | Diego Sueiro <diego.sueiro@arm.com> | 2025-08-20 12:24:55 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-25 17:47:21 +0100 |
commit | fb4ebd60536af8672f950376106e0b0500d7007c (patch) | |
tree | b0aead25434addf350c37d37bca9a3964c31911c /scripts | |
parent | e29b37130f0756e85708f4b91dc1b4a73954679c (diff) | |
download | poky-fb4ebd60536af8672f950376106e0b0500d7007c.tar.gz |
wic: Fix --overhead-factor and --extra-space checks
If --overhead-factor and --extra-space are passed with =FOO the
check fails. Fix this by checking parsed.overhead_factor and
parsed.extra_space instead.
(From OE-Core rev: 46c24b67d4e9d28e7216a7394090d807cf879fa7)
Signed-off-by: Diego Sueiro <diego.sueiro@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/ksparser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py index 7ef3dc83dd..596b6e8e7e 100644 --- a/scripts/lib/wic/ksparser.py +++ b/scripts/lib/wic/ksparser.py | |||
@@ -275,9 +275,9 @@ class KickStart(): | |||
275 | # --fixed-size iff given option was not used | 275 | # --fixed-size iff given option was not used |
276 | # (again, one cannot tell if option was passed but | 276 | # (again, one cannot tell if option was passed but |
277 | # with value equal to 0) | 277 | # with value equal to 0) |
278 | if '--overhead-factor' not in line_args: | 278 | if not parsed.overhead_factor: |
279 | parsed.overhead_factor = self.DEFAULT_OVERHEAD_FACTOR | 279 | parsed.overhead_factor = self.DEFAULT_OVERHEAD_FACTOR |
280 | if '--extra-space' not in line_args: | 280 | if not parsed.extra_space: |
281 | parsed.extra_space = self.DEFAULT_EXTRA_SPACE | 281 | parsed.extra_space = self.DEFAULT_EXTRA_SPACE |
282 | 282 | ||
283 | self.partnum += 1 | 283 | self.partnum += 1 |