diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-06-13 14:22:11 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-14 10:18:29 +0100 |
| commit | c869c1d6b234dc3aa5286f0b1d1b589c83c5fcfa (patch) | |
| tree | 3b9de3f55ae73708d34d0b82cba7127a2ef972d3 /scripts | |
| parent | 94a03322b6333d014d7df6a8f278978f7307555c (diff) | |
| download | poky-c869c1d6b234dc3aa5286f0b1d1b589c83c5fcfa.tar.gz | |
wic: add 'wic rm' command
Added empty 'wic rm' command that does nothing.
The functionality will be added by the next commits.
[YOCTO #11283]
(From OE-Core rev: f8e42c13609c482359fbdb225fb16a45101ae9ae)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/lib/wic/engine.py | 7 | ||||
| -rwxr-xr-x | scripts/wic | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index a48c4adafb..9a8055c05c 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py | |||
| @@ -340,6 +340,13 @@ def wic_cp(args, native_sysroot): | |||
| 340 | disk = Disk(args.dest.image, native_sysroot) | 340 | disk = Disk(args.dest.image, native_sysroot) |
| 341 | disk.copy(args.src, args.dest.part, args.dest.path) | 341 | disk.copy(args.src, args.dest.part, args.dest.path) |
| 342 | 342 | ||
| 343 | def wic_rm(args, native_sysroot): | ||
| 344 | """ | ||
| 345 | Remove files or directories from the vfat partition of | ||
| 346 | partitioned image. | ||
| 347 | """ | ||
| 348 | pass | ||
| 349 | |||
| 343 | def find_canned(scripts_path, file_name): | 350 | def find_canned(scripts_path, file_name): |
| 344 | """ | 351 | """ |
| 345 | Find a file either by its path or by name in the canned files dir. | 352 | Find a file either by its path or by name in the canned files dir. |
diff --git a/scripts/wic b/scripts/wic index fc192ec852..da14f4714a 100755 --- a/scripts/wic +++ b/scripts/wic | |||
| @@ -248,6 +248,13 @@ def wic_cp_subcommand(args, usage_str): | |||
| 248 | """ | 248 | """ |
| 249 | engine.wic_cp(args, args.native_sysroot) | 249 | engine.wic_cp(args, args.native_sysroot) |
| 250 | 250 | ||
| 251 | def wic_rm_subcommand(args, usage_str): | ||
| 252 | """ | ||
| 253 | Command-line handling for removing files/dirs from images. | ||
| 254 | The real work is done by engine.wic_rm() | ||
| 255 | """ | ||
| 256 | engine.wic_rm(args, args.native_sysroot) | ||
| 257 | |||
| 251 | def wic_help_subcommand(args, usage_str): | 258 | def wic_help_subcommand(args, usage_str): |
| 252 | """ | 259 | """ |
| 253 | Command-line handling for help subcommand to keep the current | 260 | Command-line handling for help subcommand to keep the current |
| @@ -286,6 +293,9 @@ helptopics = { | |||
| 286 | "cp": [wic_help_topic_subcommand, | 293 | "cp": [wic_help_topic_subcommand, |
| 287 | wic_help_topic_usage, | 294 | wic_help_topic_usage, |
| 288 | hlp.wic_cp_help], | 295 | hlp.wic_cp_help], |
| 296 | "rm": [wic_help_topic_subcommand, | ||
| 297 | wic_help_topic_usage, | ||
| 298 | hlp.wic_rm_help], | ||
| 289 | "list": [wic_help_topic_subcommand, | 299 | "list": [wic_help_topic_subcommand, |
| 290 | wic_help_topic_usage, | 300 | wic_help_topic_usage, |
| 291 | hlp.wic_list_help] | 301 | hlp.wic_list_help] |
| @@ -409,6 +419,10 @@ subcommands = { | |||
| 409 | hlp.wic_cp_usage, | 419 | hlp.wic_cp_usage, |
| 410 | hlp.wic_cp_help, | 420 | hlp.wic_cp_help, |
| 411 | wic_init_parser_cp], | 421 | wic_init_parser_cp], |
| 422 | "rm": [wic_rm_subcommand, | ||
| 423 | hlp.wic_rm_usage, | ||
| 424 | hlp.wic_rm_help, | ||
| 425 | wic_init_parser_rm], | ||
| 412 | "help": [wic_help_subcommand, | 426 | "help": [wic_help_subcommand, |
| 413 | wic_help_topic_usage, | 427 | wic_help_topic_usage, |
| 414 | hlp.wic_help_help, | 428 | hlp.wic_help_help, |
