From 0307a0e9740f6168c74161071600c8e4d3e4eeab Mon Sep 17 00:00:00 2001 From: gzyang Date: Mon, 29 Mar 2021 10:56:32 +0800 Subject: [PATCH] check if component compile --- hb/build/build_process.py | 2 ++ hb/build/fs_process.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/hb/build/build_process.py b/hb/build/build_process.py index 75eebc9..da22498 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 7d60a0b..6435d57 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: -- GitLab