提交 0307a0e9 编写于 作者: G gzyang

check if component compile

上级 ed967bf5
......@@ -98,6 +98,8 @@ class Build():
self._args_list += ['{}="{}"'.format(args_name, args_value)]
else:
self._args_list += ['{}={}'.format(args_name, args_value)]
if args_name == 'ohos_build_target' and len(args_value):
self.config.fs_attr = None
def build(self, full_compile, ninja=True, cmd_args=None):
self.check_in_device()
......
......@@ -192,6 +192,9 @@ class Packer():
if not os.path.isfile(fs_cfg_path):
hb_info(f'{fs_cfg_path} not found, stop packing fs')
return
if self.config.fs_attr is None:
hb_info(f'component compiling, no need to pack fs')
return
fs_cfg_list = read_yaml_file(fs_cfg_path)
for fs_cfg in fs_cfg_list:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册