mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
87f30cfb44
commit
ecefd3c55b
|
@ -309,6 +309,13 @@ def wic_ls(args, native_sysroot):
|
||||||
path = args.path.path or '/'
|
path = args.path.path or '/'
|
||||||
print(disk.dir(args.path.part, path))
|
print(disk.dir(args.path.part, path))
|
||||||
|
|
||||||
|
def wic_cp(args, native_sysroot):
|
||||||
|
"""
|
||||||
|
Copy local file or directory to the vfat partition of
|
||||||
|
partitioned image.
|
||||||
|
"""
|
||||||
|
pass
|
||||||
|
|
||||||
def find_canned(scripts_path, file_name):
|
def find_canned(scripts_path, file_name):
|
||||||
"""
|
"""
|
||||||
Find a file either by its path or by name in the canned files dir.
|
Find a file either by its path or by name in the canned files dir.
|
||||||
|
|
13
scripts/wic
13
scripts/wic
|
@ -241,6 +241,12 @@ def wic_ls_subcommand(args, usage_str):
|
||||||
"""
|
"""
|
||||||
engine.wic_ls(args, args.native_sysroot)
|
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):
|
def wic_help_subcommand(args, usage_str):
|
||||||
"""
|
"""
|
||||||
|
@ -277,6 +283,9 @@ helptopics = {
|
||||||
"ls": [wic_help_topic_subcommand,
|
"ls": [wic_help_topic_subcommand,
|
||||||
wic_help_topic_usage,
|
wic_help_topic_usage,
|
||||||
hlp.wic_ls_help],
|
hlp.wic_ls_help],
|
||||||
|
"cp": [wic_help_topic_subcommand,
|
||||||
|
wic_help_topic_usage,
|
||||||
|
hlp.wic_cp_help],
|
||||||
"list": [wic_help_topic_subcommand,
|
"list": [wic_help_topic_subcommand,
|
||||||
wic_help_topic_usage,
|
wic_help_topic_usage,
|
||||||
hlp.wic_list_help]
|
hlp.wic_list_help]
|
||||||
|
@ -390,6 +399,10 @@ subcommands = {
|
||||||
hlp.wic_ls_usage,
|
hlp.wic_ls_usage,
|
||||||
hlp.wic_ls_help,
|
hlp.wic_ls_help,
|
||||||
wic_init_parser_ls],
|
wic_init_parser_ls],
|
||||||
|
"cp": [wic_cp_subcommand,
|
||||||
|
hlp.wic_cp_usage,
|
||||||
|
hlp.wic_cp_help,
|
||||||
|
wic_init_parser_cp],
|
||||||
"help": [wic_help_subcommand,
|
"help": [wic_help_subcommand,
|
||||||
wic_help_topic_usage,
|
wic_help_topic_usage,
|
||||||
hlp.wic_help_help,
|
hlp.wic_help_help,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user