diff options
-rw-r--r-- | scripts/lib/wic/engine.py | 7 | ||||
-rwxr-xr-x | scripts/wic | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index 95c8d1cc22..f8f2844cf6 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py | |||
@@ -309,6 +309,13 @@ def wic_ls(args, native_sysroot): | |||
309 | path = args.path.path or '/' | 309 | path = args.path.path or '/' |
310 | print(disk.dir(args.path.part, path)) | 310 | print(disk.dir(args.path.part, path)) |
311 | 311 | ||
312 | def wic_cp(args, native_sysroot): | ||
313 | """ | ||
314 | Copy local file or directory to the vfat partition of | ||
315 | partitioned image. | ||
316 | """ | ||
317 | pass | ||
318 | |||
312 | def find_canned(scripts_path, file_name): | 319 | def find_canned(scripts_path, file_name): |
313 | """ | 320 | """ |
314 | Find a file either by its path or by name in the canned files dir. | 321 | Find a file either by its path or by name in the canned files dir. |
diff --git a/scripts/wic b/scripts/wic index 945dda82e3..5e81fad726 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -241,6 +241,12 @@ def wic_ls_subcommand(args, usage_str): | |||
241 | """ | 241 | """ |
242 | engine.wic_ls(args, args.native_sysroot) | 242 | engine.wic_ls(args, args.native_sysroot) |
243 | 243 | ||
244 | def wic_cp_subcommand(args, usage_str): | ||
245 | """ | ||
246 | Command-line handling for copying files/dirs to images. | ||
247 | The real work is done by engine.wic_cp() | ||
248 | """ | ||
249 | engine.wic_cp(args, args.native_sysroot) | ||
244 | 250 | ||
245 | def wic_help_subcommand(args, usage_str): | 251 | def wic_help_subcommand(args, usage_str): |
246 | """ | 252 | """ |
@@ -277,6 +283,9 @@ helptopics = { | |||
277 | "ls": [wic_help_topic_subcommand, | 283 | "ls": [wic_help_topic_subcommand, |
278 | wic_help_topic_usage, | 284 | wic_help_topic_usage, |
279 | hlp.wic_ls_help], | 285 | hlp.wic_ls_help], |
286 | "cp": [wic_help_topic_subcommand, | ||
287 | wic_help_topic_usage, | ||
288 | hlp.wic_cp_help], | ||
280 | "list": [wic_help_topic_subcommand, | 289 | "list": [wic_help_topic_subcommand, |
281 | wic_help_topic_usage, | 290 | wic_help_topic_usage, |
282 | hlp.wic_list_help] | 291 | hlp.wic_list_help] |
@@ -390,6 +399,10 @@ subcommands = { | |||
390 | hlp.wic_ls_usage, | 399 | hlp.wic_ls_usage, |
391 | hlp.wic_ls_help, | 400 | hlp.wic_ls_help, |
392 | wic_init_parser_ls], | 401 | wic_init_parser_ls], |
402 | "cp": [wic_cp_subcommand, | ||
403 | hlp.wic_cp_usage, | ||
404 | hlp.wic_cp_help, | ||
405 | wic_init_parser_cp], | ||
393 | "help": [wic_help_subcommand, | 406 | "help": [wic_help_subcommand, |
394 | wic_help_topic_usage, | 407 | wic_help_topic_usage, |
395 | hlp.wic_help_help, | 408 | hlp.wic_help_help, |