diff options
| author | Trevor Woerner <trevor.woerner@amd.com> | 2025-03-20 14:50:45 -0600 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2025-03-30 14:16:15 -0600 |
| commit | 17d0c589cb8fe91688fa141c4f804e90ce24fcef (patch) | |
| tree | 704b0ae7f5e506c4c0da2bcf4684a4090bf82823 /meta-xilinx-core/scripts/wic | |
| parent | aac160dbfa1e4efd6e8239bfbc1d7fe97364d87c (diff) | |
| download | meta-xilinx-17d0c589cb8fe91688fa141c4f804e90ce24fcef.tar.gz | |
wic: add --sector-size cmdline arg to create
Add a command-line argument, --sector-size <N>, to wic's "create" subcommand
and allow it to propagate throughout the wic code so it can be used when
generating a wic image.
Signed-off-by: Trevor Woerner <trevor.woerner@amd.com>
Added scripts/lib/scriptpath.py change.
Updated the wic version to make it clear it's from this layer.
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core/scripts/wic')
| -rwxr-xr-x | meta-xilinx-core/scripts/wic | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-xilinx-core/scripts/wic b/meta-xilinx-core/scripts/wic index 06e0b48d..c0ba6d71 100755 --- a/meta-xilinx-core/scripts/wic +++ b/meta-xilinx-core/scripts/wic | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | # AUTHORS | 14 | # AUTHORS |
| 15 | # Tom Zanussi <tom.zanussi (at] linux.intel.com> | 15 | # Tom Zanussi <tom.zanussi (at] linux.intel.com> |
| 16 | # | 16 | # |
| 17 | __version__ = "0.2.0" | 17 | __version__ = "0.2.0 (meta-xilinx-core)" |
| 18 | 18 | ||
| 19 | # Python Standard Library modules | 19 | # Python Standard Library modules |
| 20 | import os | 20 | import os |
| @@ -351,6 +351,8 @@ def wic_init_parser_create(subparser): | |||
| 351 | default="direct", help="the wic imager plugin") | 351 | default="direct", help="the wic imager plugin") |
| 352 | subparser.add_argument("--extra-space", type=int, dest="extra_space", | 352 | subparser.add_argument("--extra-space", type=int, dest="extra_space", |
| 353 | default=0, help="additional free disk space to add to the image") | 353 | default=0, help="additional free disk space to add to the image") |
| 354 | subparser.add_argument("--sector-size", type=int, dest="sector_size", | ||
| 355 | default=512, help="sector size to use") | ||
| 354 | return | 356 | return |
| 355 | 357 | ||
| 356 | 358 | ||
