diff options
| author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-06-13 14:22:00 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-14 10:18:29 +0100 |
| commit | ecefd3c55be30a4e77c7bc8a08e2828f47ce46da (patch) | |
| tree | 8beb87743cb80310f8d37f94f852e923a33a5dd2 | |
| parent | 87f30cfb447329fb0029684b78274c4a6d47b4a6 (diff) | |
| download | poky-ecefd3c55be30a4e77c7bc8a08e2828f47ce46da.tar.gz | |
wic: add 'wic cp' command
Added empty 'wic cp' command that does nothing.
The functionality will be added by the next commits.
[YOCTO #11283]
(From OE-Core rev: f0dcf39d52185430422cb0c94c7fe99c12764acd)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -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, |
