提交 5d94c10e 编写于 作者: Y yinchuang

Add disable package image option

Issue:https://gitee.com/openharmony/build/issues/I5KLPOSigned-off-by: Nyinchuang <yinchuang@huawei.com>
Signed-off-by: Nyinchuang <yinchuang@huawei.com>
上级 d6b1433f
......@@ -108,6 +108,11 @@ def add_options(parser):
help='it will skip prepare, preloader, '
'gn_gen steps so we can enable it only '
'when there is no change for gn related script')
parser.add_argument('--disable-package-image',
action='store_true',
default=False,
help='it will skip package image process'
'you can enable it if you do not need package image')
parser.add_argument('--device-type',
help='specifies device type',
default='default')
......@@ -197,6 +202,8 @@ def exec_command(args):
ninja = False
if args.fast_rebuild:
cmd_args['fast_rebuild'] = args.fast_rebuild
if args.disable_package_image:
cmd_args['disable_package_image'] = args.disable_package_image
if hasattr(args, 'device_type') and args.device_type:
cmd_args['device_type'] = args.device_type
if hasattr(args, 'build_variant') and args.build_variant:
......
......@@ -154,7 +154,8 @@ class Build():
else:
post_build = PostBuild(self.config)
post_build.patch_ohos_para(cmd_args)
post_build.package_image()
if not cmd_args.get('disable_package_image'):
post_build.package_image()
output_part_rom_status(self.config.root_path)
finally:
if 'post_build' not in locals():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册