summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-06-13 14:22:00 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-14 10:18:29 +0100
commitecefd3c55be30a4e77c7bc8a08e2828f47ce46da (patch)
tree8beb87743cb80310f8d37f94f852e923a33a5dd2 /scripts/wic
parent87f30cfb447329fb0029684b78274c4a6d47b4a6 (diff)
downloadpoky-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>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic13
1 files changed, 13 insertions, 0 deletions
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
244def 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
245def wic_help_subcommand(args, usage_str): 251def 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,