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:20 +0100
commitf0dcf39d52185430422cb0c94c7fe99c12764acd (patch)
treefb09f4fa7d37d5585656a43008333412710e774b /scripts/wic
parentf3f0dadada1e297f2b54fa320bb817da7f755c1f (diff)
downloadopenembedded-core-contrib-f0dcf39d52185430422cb0c94c7fe99c12764acd.tar.gz
openembedded-core-contrib-f0dcf39d52185430422cb0c94c7fe99c12764acd.tar.bz2
openembedded-core-contrib-f0dcf39d52185430422cb0c94c7fe99c12764acd.zip
wic: add 'wic cp' command
Added empty 'wic cp' command that does nothing. The functionality will be added by the next commits. [YOCTO #11283] 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):
"""
engine.wic_ls(args, args.native_sysroot)
+def wic_cp_subcommand(args, usage_str):
+ """
+ Command-line handling for copying files/dirs to images.
+ The real work is done by engine.wic_cp()
+ """
+ engine.wic_cp(args, args.native_sysroot)
def wic_help_subcommand(args, usage_str):
"""
@@ -277,6 +283,9 @@ helptopics = {
"ls": [wic_help_topic_subcommand,
wic_help_topic_usage,
hlp.wic_ls_help],
+ "cp": [wic_help_topic_subcommand,
+ wic_help_topic_usage,
+ hlp.wic_cp_help],
"list": [wic_help_topic_subcommand,
wic_help_topic_usage,
hlp.wic_list_help]
@@ -390,6 +399,10 @@ subcommands = {
hlp.wic_ls_usage,
hlp.wic_ls_help,
wic_init_parser_ls],
+ "cp": [wic_cp_subcommand,
+ hlp.wic_cp_usage,
+ hlp.wic_cp_help,
+ wic_init_parser_cp],
"help": [wic_help_subcommand,
wic_help_topic_usage,
hlp.wic_help_help,