Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 143) sorted by relevance

123456

/build/hb/util/loader/
Dgenerate_targets_gn.py88 parts_list_content = '"{}",'.format('",\n "'.join(parts_list))
90 PARTS_LIST_GNI_TEMPLATE.format(parts_list_content))
92 "generate part list gni file to '{}/parts_list.gni'".format(config_output_dir))
97 inner_kits_content = '"{}",'.format('",\n "'.join(inner_kits_list))
101 INNER_KITS_GNI_TEMPLATE.format(inner_kits_content))
103 "generate inner kits gni file to '{}/inner_kits_list.gni'".format(config_output_dir))
108 system_kits_content = '"{}",'.format('",\n "'.join(system_kits_list))
112 SYSTEM_KITS_GNI_TEMPLATE.format(system_kits_content))
114 "generate system list gni file to '{}/system_kits_list.gni'".format(config_output_dir))
119 test_list_content = '"{}",'.format('",\n "'.join(parts_test_list))
[all …]
Dload_ohos_build.py78 label = '//{}/{}'.format(path, label)
86 "config file '{}' doesn't exist.".format(bundle_file), "2014")
90 "read file '{}' failed.".format(bundle_file), "2014")
99 "config file '{}' doesn't exist.".format(ohos_build_file), "2014")
103 "read file '{}' failed.".format(ohos_build_file), "2014")
114 _real_name = '{}_{}'.format(part_name, variant_name)
137 lib_config.append(' type = "{}"'.format(lib_type))
138 lib_config.append(' name = "{}"'.format(label))
145 lib_config.append(' "{}",'.format(h_file))
148 lib_config.append(' header_base = "{}"'.format(header_base))
[all …]
Dload_bundle_file.py34 raise OHOSException("file '{}' doesn't exist.".format(
38 raise OHOSException("read file '{}' failed.".format(
46 _tip_info = "bundle.json info is incorrect in '{}'".format(
50 "{}, 'component' is required.".format(_tip_info), "2011")
54 "{}, 'component.name' is required.".format(_tip_info), "2011")
57 "{}, 'component.subsystem' is required.".format(_tip_info), "2011")
60 "{}, 'component.build' is required.".format(_tip_info), "2011")
73 "{}, incorrect group type".format(_tip_info), "2011")
94 _key = '{}:{}'.format(_subsystem_name, _part_name)
Dplatforms_loader.py41 raise OHOSException("config file '{}' doesn't exist.".format(
45 raise OHOSException("read file '{}' failed.".format(
59 raise OHOSException(error_info.format(_name), "2012")
60 arch = "{}_{}".format(target_os, target_cpu)
74 raise OHOSException(error_info.format(_name), "2012")
75 arch = "{}_{}".format(target_os, target_cpu)
88 "config file '{}' doesn't exist.".format(platform_config_file))
92 "read file '{}' failed.".format(platform_config_file))
120 'target_platforms', "{}.build".format(_platform_name))
130 _platform_config_file = '{}.build'.format(_platform_name)
[all …]
/build/hb/resolver/
Denv_args_resolver.py47 LogUtil.hb_info('Necessary package: {}'.format(
49 LogUtil.hb_info('Installed package: {}'.format(
51 LogUtil.hb_info('Uninstalled package: {}'.format(
55 … 'Run "sudo apt-get install {}" to install dependencies'.format(' '.join(packages_info[2])))
70 LogUtil.hb_info('root path: {}'.format(root_path))
71 LogUtil.hb_info('board: {}'.format(board))
72 LogUtil.hb_info('kernel: {}'.format(kernel))
73 LogUtil.hb_info('product: {}'.format(product))
74 LogUtil.hb_info('product path: {}'.format(product_path))
75 LogUtil.hb_info('device path: {}'.format(device_path))
[all …]
/build/tests/unittest/part_replace/
Dtest_set.py60 if os.path.exists("{}.backup".format(product_dest_path)):
63 if os.path.exists("{}.backup".format(subsystem_config_path)):
67 if os.path.exists("{}.backup".format(subsystem_components_whitelist_path)):
71 shutil.move(product_dest_path, "{}.backup".format(product_dest_path))
73 "{}.backup".format(subsystem_config_path))
75 "{}.backup".format(subsystem_components_whitelist_path))
90 if os.path.exists("{}.backup".format(product_dest_path)):
91 shutil.move("{}.backup".format(product_dest_path), product_dest_path)
93 if os.path.exists("{}.backup".format(subsystem_config_path)):
94 shutil.move("{}.backup".format(
[all …]
/build/scripts/
Dninja_rules_parser.py27 raise Exception("file '{}' doesn't exist.".format(subninja_build_file))
30 raise Exception("read file '{}' failed.".format(subninja_build_file))
59 start_index = len('{}/obj/'.format(toolchain_name))
64 _label_path = '{}$:{}'.format(_path, label_name)
72 "file '{}' doesn't exist.".format(toolchain_ninja_file))
75 raise Exception("read file '{}' failed.".format(toolchain_ninja_file))
100 "file '{}' doesn't exist.".format(variants_toolchain_info_file))
104 "read file '{}' failed.".format(variants_toolchain_info_file))
111 raise Exception("file '{}' doesn't exist.".format(build_ninja_file))
114 raise Exception("read file '{}' failed.".format(build_ninja_file))
[all …]
Dtools_checker.py40 print("Running: {}".format(' '.join(cmd)))
77 _build_package_list = file_json["{}".format(
84 format(pkg))
108 print("\033[33m OS {} is not supported for ohos build.\033[0m".format(
118 format(host_version))
119 print("\033[33m Available OS version are {}.\033[0m".format(
/build/tools/module_dependence/
Ddependence_analysis.py24 search_str = "{}/**/*{}".format(search_path, "_external_deps_temp.json")
36 "file '{}' doesn't exist.".format(_external_deps_file))
40 "read file '{}' failed.".format(_external_deps_file))
45 module_alias = '{}:{}'.format(part_name, module_name)
63 raise Exception("file '{}' doesn't exist.".format(_deps_file))
66 raise Exception("read file '{}' failed.".format(_deps_file))
69 module_alias = '{}:{}'.format(part_name, module_name)
82 "module '{}' external deps info is incorrect.".format(
Dmodule_deps_tree.py27 print("file '{}' doesn't exist.".format(input_file))
35 print("The file '{}' format is incorrect.".format(input_file))
75 node_name = "{}:{}".format(new_part_name, module_name)
79 "module '{}' doesn't exist.".format(old_node_name))
81 print("Warning! module '{}' doesn't exist.".format(
142 "{}.html".format(node_name.replace(":", "__")))
143 tree_title = "{} module dependency tree".format(node_name)
161 print('module deps tree output to {}'.format(output_file))
/build/hb/services/
Dgn.py72 'You are tring to use an unsupported gn cmd type "{}"'.format(cmd_type), '3001')
82 .format(sys.platform))
87 'There is no gn executable file at {}'.format(gn_path), '0001')
99 args_list.append('{}={}'.format(key, str(value).lower()))
102 args_list.append('{}="{}"'.format(key, value))
105 args_list.append('{}={}'.format(key, value))
108 args_list.append('{}="{}"'.format(key, "&&".join(value)))
124 flags_list.append('{}'.format(key))
126 flags_list.append('{}={}'.format(key, str(value)).lower())
149 … 'choose from {}'.format(option_name, option_value, sub_optional_list), '3006')
[all …]
Dloader.py70 self.target_arch = '{}_{}'.format(self.target_os, self.target_cpu)
199 " by this part, part_name='{}', feature='{}'".format(
281 … need start with \"SystemCapability.\"""".format(syscap['component'], syscap_string), "2009")
308 "generate syscap info file to '{}'".format(syscap_info_json))
315 LogUtil.hb_info("generate syscap info with part name list to '{}'".format(
323 LogUtil.hb_info("generate target syscap for init list to '{}'".format(
346 LogUtil.hb_info("generate infos for testfwk to '{}'".format(
361 LogUtil.hb_info("generate target platform parts to '{}'".format(
377 LogUtil.hb_info("generate part different info to '{}'".format(
390 … _gni_file_content = ['target_platform_list = [', ' "{}"'.format('",\n "'.join(_platforms)), ']',
[all …]
Dpreloader.py75 … 'generated platforms build info to {}/platforms.build'.format(self._dirs.preloader_output_dir))
104 …'generated build gnargs prop info to {}/build_gnargs.prop'.format(self._dirs.preloader_output_dir))
127 'generated features info to {}/features.json'.format(self._dirs.preloader_output_dir))
148 'generated syscap info to {}/syscap.json'.format(self._dirs.preloader_output_dir))
165 …'generated exclusion modules info to {}/exclusion_modules.json'.format(self._dirs.preloader_output…
176 … 'generated build config info to {}/build_config.json'.format(self._dirs.preloader_output_dir))
186 build_vars_list.append('{}={}'.format(key, value))
191 'generated build prop info to {}/build.prop'.format(self._dirs.preloader_output_dir))
202 'generated product parts info to {}/parts.json'.format(self._dirs.preloader_output_dir))
219 … 'generated parts config info to {}/parts_config.json'.format(self._dirs.preloader_output_dir))
[all …]
/build/
Dprebuilts_download.py67 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
69 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
71 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
81 progress.console.log('Requesting {}'.format(url))
85 … progress.console.log("Failed to open {}, HTTPError: {}".format(url, e.code), style='red')
92 progress.console.log("Downloaded {}".format(local_file))
97 progress.console.log("Decompressing {}".format(local_file))
99 progress.console.log("Decompressed {}".format(local_file))
105 … with three times retry, please check network status. Prebuilts download exit.'.format(local_file))
113 print('Requesting {}, please wait'.format(url))
[all …]
/build/scripts/util/
Dpycache.py30 possible_dir_cache_artifact = '{}.directory'.format(cache_artifact)
37 print('Retrieve {} from cache'.format(obj))
46 print('Extract {} from cache'.format(obj))
49 print('Failed to retrieve {} from cache'.format(obj))
62 dir_cache_artifact = '{}.directory'.format(cache_artifact)
65 print("archive {} to {}".format(obj, dir_cache_artifact))
69 print("copying {} to {}".format(obj, cache_artifact))
83 _, cache_artifact = self.descend_directory('{}{}'.format(
97 _, cache_artifact = self.descend_directory('{}{}'.format(
108 daemon_config_file = '{}/.config'.format(self.pycache_dir)
Dpyd.py34 def log_message(self, format, *args): # pylint: disable=redefined-builtin argument
36 super().log_message(format, *args)
118 print('pycache hit targets: {}'.format(self.hit_times))
119 print('pycache miss targets: {}'.format(self.miss_times))
122 print('pycache hit rate: {:.2f}%'.format(hit_rate))
123 print('pycache miss rate: {:.2f}%'.format(miss_rate))
138 print('Starting pycache daemon at {}:{}'.format(host, port))
150 daemon_config_file = '{}/.config'.format(cache_dir)
152 raise Exception('Warning: {} not exists'.format(daemon_config_file))
/build/tools/component_tools/static_check/gn_check/
Dgn_common_tools.py47 cmd = "find {}".format(project_path)
48 cmd += " -name {}".format(target_filename[0])
52 cmd += " -o -path '{}' -prune".format(bd_path)
75 cmd = "grep -{} -s '{}' {}".format(grep_parameter,
78 cmd += " --include={}".format(include)
80 cmd += " --exclude-dir={}".format(exclude)
82 cmd += " | grep -Ev '{}'".format("|".join(black_keyword))
/build/ohos/notice/
Dcollect_system_notice_files.py54 "{}.txt".format(module_info['dest'][0]))
58 if os.path.isfile("{}.json".format(module_info['notice'])):
59 os.makedirs(os.path.dirname("{}.json".format(dest)), exist_ok=True)
60 shutil.copyfile("{}.json".format(module_info['notice']), "{}.json".format(dest))
69 if os.path.isfile("{}.json".format(file)):
70 os.makedirs(os.path.dirname("{}.json".format(dest)), exist_ok=True)
71 shutil.copyfile("{}.json".format(file), "{}.json".format(dest))
Dcollect_module_notice_file.py63 raise Exception("Error: failed to read {}.".format(readme_path))
69 raise Exception("Error: value of notice file is empty in {}.".format(
72 raise Exception("Error: Name of notice file is empty in {}.".format(
75 raise Exception("Error: Version Number of notice file is empty in {}.".format(
89 … module_notice_info['Software'] = "{} {}".format(notice_file_info[1], notice_file_info[2])
99 … module_notice_info['Software'] = "{} {}".format(notice_file_info[1], notice_file_info[2])
107 … module_notice_info['Software'] = "{} {}".format(notice_file_info[1], notice_file_info[2])
111 module_notice_info['Path'] = "/{}".format(options.module_source_dir[5:])
116 notice_info_json = '{}.json'.format(output)
Dmerge_notice_files.py83 if os.path.isfile("{}.json".format(file)):
84 os.makedirs(os.path.dirname("{}.json".format(dest)), exist_ok=True)
85 shutil.copyfile("{}.json".format(file), "{}.json".format(dest))
113 output_file, '/{}'.format(
120 json_filename = '{}.json'.format(filename)
128 write_file(output_file, "Software: {}".format(software_name))
129 write_file(output_file, "Path: {}".format(notice_source_path))
172 .format(file_key, get_entity(temp_file_hd.read())))
186 notice_file = '{}.txt'.format(zip_file[:-4])
232 zipfiles = glob.glob('{}/**/*.zip'.format(notice_dir), recursive=True)
[all …]
/build/lite/
Dutils.py47 print('file [{}] no exist.'.format(input_file))
74 print('you can check build log in {}'.format(log_path))
75 raise Exception("{} failed, return code is {}".format(cmd, ret_code))
86 raise Exception("{} failed, failed log is {}".format(cmd, ret))
96 raise Exception("{} makedirs failed".format(path))
98 raise Exception("{} exists, makedirs failed".format(path))
112 raise Exception('{} not found in callback dict'.format(event))
/build/ohos/packages/
Dprocess_field_validate.py104 print("Cfg location: {}".format(self.loc))
183 …print("Name: {}\nuid: {}\ngiven uid: {}\ngid: ".format(i[0], i[1].uid, i[1].related_item.uid), end…
193 print("Cfg location: {}".format(i[1].loc))
200 print("Cfg location: {}\n".format(i[1].loc), end="")
201 print("Name: {}\ncritical: {}\n".format(i[0], i[1].critical), end="")
202 print("Whitelist-allowed critical: {}\n".format(i[1].related_item.critical))
210 … print("Error: {}is not a valid whilelist, it has not a wanted field name".format(process_path))
241 …print("Error: some services do not match with critical whitelist({}).".format(critical_process_pat…
259 … print("High-privilege process check skipped: file [{}] not exist".format(privilege_process_path))
264 … print("Critical-reboot process check skipped: file [{}] not exist".format(critical_process_path))
[all …]
/build/templates/bpf/
Dgen_bpf_uapi.py34 'O={}'.format(options.kernel_out_dir),
35 'ARCH={}'.format(options.target_cpu)]
37 'O={}'.format(make_tools_inc_dir),
38 'ARCH={}'.format(options.target_cpu)]
/build/templates/common/
Dexternal_deps_handler.py46 "external dep part '{}' doesn't exist.".format(external_part_name))
54 "part '{}' doesn't exist.".format(adapted_part_name))
59 "external dep module '{}' doesn't exist in part '{}'.".format(
63 "external dep module '{}' doesn't exist in part '{}'.".format(
74 raise Exception("part '{}' doesn't exist in sdk modules.".format(
85 raise Exception("part '{}' doesn't exist sdk modules.".format(
90 "external dep module '{}' doesn't exist in part '{}'.".format(
95 "external dep module '{}' doesn't exist in part '{}'.".format(
208 "external deps part '{}' variants info is None.".format(
212 dep_label_with_tc = "{}({})".format(dep_label, toolchain)
[all …]
/build/tools/component_tools/
Dgenerate_kconfig.py37 return KCONFIG_STR.format(name, comment)
40 return PROPERTIES_STR.format(name, comment)
43 return KMENU_STR.format(name)
70 result += create_property("property$${}".format(prop), prop)
77 result += create_config("{}$${}".format(subsys_name, component_name), component_name)
78 result += create_feature("{}$${}".format(subsys_name, component_name))

123456