mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
wic: Add new argument to direct plugin
Added 'compressor' argument to Direct plugin API to pass a name of compressor utility. (From OE-Core rev: 34c583274c2908351e3a84dd629302f1975f2f0d) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
40349f1325
commit
597cba650c
@@ -217,6 +217,7 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
|
||||
sys.exit(1)
|
||||
|
||||
direct_args = list()
|
||||
direct_args.insert(0, compressor or "")
|
||||
direct_args.insert(0, oe_builddir)
|
||||
direct_args.insert(0, image_output_dir)
|
||||
direct_args.insert(0, wks_file)
|
||||
|
||||
@@ -50,7 +50,7 @@ class DirectImageCreator(BaseImageCreator):
|
||||
"""
|
||||
|
||||
def __init__(self, oe_builddir, image_output_dir, rootfs_dir, bootimg_dir,
|
||||
kernel_dir, native_sysroot, creatoropts=None):
|
||||
kernel_dir, native_sysroot, compressor, creatoropts=None):
|
||||
"""
|
||||
Initialize a DirectImageCreator instance.
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ class DirectPlugin(ImagerPlugin):
|
||||
"""
|
||||
Create direct image, called from creator as 'direct' cmd
|
||||
"""
|
||||
if len(args) != 7:
|
||||
if len(args) != 8:
|
||||
raise errors.Usage("Extra arguments given")
|
||||
|
||||
native_sysroot = args[0]
|
||||
@@ -75,6 +75,7 @@ class DirectPlugin(ImagerPlugin):
|
||||
|
||||
image_output_dir = args[5]
|
||||
oe_builddir = args[6]
|
||||
compressor = args[7]
|
||||
|
||||
krootfs_dir = cls.__rootfs_dir_to_dict(rootfs_dir)
|
||||
|
||||
@@ -86,6 +87,7 @@ class DirectPlugin(ImagerPlugin):
|
||||
bootimg_dir,
|
||||
kernel_dir,
|
||||
native_sysroot,
|
||||
compressor,
|
||||
creatoropts)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user