diff --git a/hb/build/build_process.py b/hb/build/build_process.py index 75eebc9af0cc0e098a7fe36e49f78182112a325e..da22498a9b16a8b490c229e46e6928654ef1a291 100755 --- a/hb/build/build_process.py +++ b/hb/build/build_process.py @@ -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() diff --git a/hb/build/fs_process.py b/hb/build/fs_process.py index 7d60a0b785ce1543b9cdd1efb058203169f4c406..6435d5756b1c57610f3bd748913a04fb9604c1b2 100644 --- a/hb/build/fs_process.py +++ b/hb/build/fs_process.py @@ -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: