Home
last modified time | relevance | path

Searched refs:format (Results 1 - 25 of 154) sorted by relevance

1234567

/build/hb/util/loader/
H A Dgenerate_targets_gn.py89 parts_list_content = '"{}",'.format('",\n "'.join(parts_list))
91 PARTS_LIST_GNI_TEMPLATE.format(parts_list_content))
93 "generate part list gni file to '{}/parts_list.gni'".format(config_output_dir), mode=Config.log_mode)
98 inner_kits_content = '"{}",'.format('",\n "'.join(inner_kits_list))
102 INNER_KITS_GNI_TEMPLATE.format(inner_kits_content))
104 "generate inner kits gni file to '{}/inner_kits_list.gni'".format(
110 system_kits_content = '"{}",'.format('",\n "'.join(system_kits_list))
114 SYSTEM_KITS_GNI_TEMPLATE.format(system_kits_content))
116 "generate system list gni file to '{}/system_kits_list.gni'".format(
122 test_list_content = '"{}",'.format('",\
[all...]
H A 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")
66 'component.build.modules' is required.".format(_tip_info), "2011")
73 "{}, incorrect group type".format(_tip_info), "2011")
94 _key = '{}:{}'.format(_subsystem_nam
[all...]
H A Dload_ohos_build.py79 label = '//{}/{}'.format(path, label)
87 "config file '{}' doesn't exist.".format(bundle_file), "2014")
91 "read file '{}' failed.".format(bundle_file), "2014")
100 "config file '{}' doesn't exist.".format(ohos_build_file), "2014")
104 "read file '{}' failed.".format(ohos_build_file), "2014")
115 _real_name = '{}_{}'.format(part_name, variant_name)
140 lib_config.append(' type = "{}"'.format(lib_type))
141 lib_config.append(' name = "{}"'.format(label))
148 lib_config.append(' "{}",'.format(h_file))
151 lib_config.append(' header_base = "{}"'.format(header_bas
[all...]
H A Dplatforms_loader.py43 "config file '{}' doesn't exist.".format(platform_config_file))
47 "read file '{}' failed.".format(platform_config_file))
61 raise OHOSException("config file '{}' doesn't exist.".format(
65 raise OHOSException("read file '{}' failed.".format(
79 raise OHOSException(error_info.format(_name), "2012")
80 arch = "{}_{}".format(target_os, target_cpu)
94 raise OHOSException(error_info.format(_name), "2012")
95 arch = "{}_{}".format(target_os, target_cpu)
121 'target_platforms', "{}.build".format(_platform_name))
131 _platform_config_file = '{}.build'.format(_platform_nam
[all...]
/build/test/example/
H A Dtest_build_option.py96 log_info("TIMEOUT:{}".format(TIMEOUT))
97 log_info("COMMAND_TYPE:{}".format(COMMAND_TYPE))
98 log_info("TIME_OVER:{}".format(TIME_OVER))
99 log_info("PTYFLAG:{}".format(PTYFLAG))
100 log_info("select_timeout:{}".format(select_timeout))
109 log_info("communicate_exec cmd is :{}".format(" ".join(cmd)))
123 log_error("An error occurred: {}".format(errs))
132 log_info("【match success {}】:{}\n".format(line_count, line)) # 输出命令终端的显示
157 log_error("【actual_result】:{}\n".format(new_dict))
160 log_info("【expect_result】:{}\n".format(expect_dic
[all...]
/build/hb/resolver/
H A 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_pat
[all...]
/build/scripts/
H A 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_fil
[all...]
/build/tools/component_tools/static_check/gn_check/
H A 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/hb/services/
H A Dgn.py74 'You are tring to use an unsupported gn cmd type "{}"'.format(cmd_type), '3001')
84 .format(sys.platform))
89 'There is no gn executable file at {}'.format(gn_path), '0001')
99 '--args={}'.format(' '.join(self._convert_args())),
103 LogUtil.write_log(self.config.log_path, 'Excuting gn command: {} {} --args="{}" {}'.format(
153 '"{}" Not a build directory.'.format(out_dir), '3004')
178 '"{}" Not a build directory.'.format(out_dir), '3004')
198 '"{}" Not a build directory.'.format(out_dir), '3004')
218 '"{}" Not a build directory.'.format(out_dir), '3004')
220 '''Description: Execute 'gn format' comman
[all...]
H A Dhpm.py70 'You are tring to use an unsupported hpm cmd type "{}"'.format(cmd_type), '3001')
104 'There is no hpm executable file at {}'.format(hpm_path), '0001')
120 os.rename(logpath, '{}/build.{}.log'.format(os.path.dirname(logpath), mtime))
153 args_list.append('{}={}'.format(key, str(value).lower()))
156 args_list.append('{}="{}"'.format(key, value))
159 args_list.append('{}={}'.format(key, value))
162 args_list.append('{}="{}"'.format(key, "&&".join(value)))
180 flags_list.append('--{}'.format(key))
182 flags_list.extend(['--{}'.format(key), '{}'.format(st
[all...]
H A Dpreloader.py77 'generated platforms build info to {}/platforms.build'.format(
107 'generated build gnargs prop info to {}/build_gnargs.prop'.format(
131 'generated features info to {}/features.json'.format(
153 'generated syscap info to {}/syscap.json'.format(
171 'generated exclusion modules info to {}/exclusion_modules.json'.format(
183 'generated build config info to {}/build_config.json'.format(
194 build_vars_list.append('{}={}'.format(key, value))
199 'generated build prop info to {}/build.prop'.format(
211 'generated product parts info to {}/parts.json'.format(
229 'generated parts config info to {}/parts_config.json'.format(
[all...]
H A Dloader.py73 self.target_arch = '{}_{}'.format(self.target_os, self.target_cpu)
203 'build/subsystem_config.json') is written correctly.".format(self.config.product), "2001")
215 is written correctly.".format(self.config.product), "2004")
249 "in this part bundle.json file, part_name='{}'".format(vals, key)
258 " by this part, part_name='{}', feature='{}'".format(
311 please check the syscap name".format(key, syscap), "2008")
343 need start with \"SystemCapability.\"""".format(syscap['component'], syscap_string), "2009")
370 "generate syscap info file to '{}'".format(syscap_info_json), mode=self.config.log_mode)
377 LogUtil.hb_info("generate syscap info with part name list to '{}'".format(
385 LogUtil.hb_info("generate target syscap for init list to '{}'".format(
[all...]
/build/
H A Dprebuilts_download.py47 print('remote file {}.sha256 is not found, begin check SHASUMS256.txt'.format(check_url))
92 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
94 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
96 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
107 progress.console.log('Requesting {}'.format(url))
111 progress.console.log("Failed to open {}, HTTPError: {}".format(url, e.code), style='red')
118 progress.console.log("Downloaded {}".format(local_file))
123 progress.console.log("Decompressing {}".format(local_file))
125 progress.console.log("Decompressed {}".format(local_file))
131 print('{}, download failed with three times retry, please check network status. Prebuilts download exit.'.format(local_fil
[all...]
/build/ohos/notice/
H A 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))
/build/config/components/init/seccomp/scripts/
H A Dgenerate_code_from_policy.py105 raise ValidateError('{} not exsit in {} function_name_nr_table Table'.format(function_name, arch))
112 raise ValidateError('{} not within the legal range of errno values.'.format(errno))
258 raise ValidateError('{} is not legal by headFiles format'.format(head_files))
267 syscall'.format(self_define_syscall, self_define_syscall))
280 raise ValidateError('{} not in {}'.format(return_str, ret_str_to_bpf.keys()))
286 raise ValidateError('{} not in [DEFAULT, ONLY_CHECK_ARGS]'.format(mode_str))
295 raise ValidateError('{} of allow list is in block list'.format(syscall))
349 bpf_policy.append(BPF_JEQ.format(const_str + ' & 0xffffffff', jt, jf))
355 bpf_policy.append(BPF_JEQ.format('((unsigne
[all...]
/build/scripts/util/
H A 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))
89 _, cache_artifact = self.descend_directory('{}{}'.format(
103 _, cache_artifact = self.descend_directory('{}{}'.format(
114 daemon_config_file = '{}/.config'.format(sel
[all...]
/build/templates/bpf/
H A 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/tools/module_dependence/
H A Ddependence_analysis.py24 search_str = "{}/**/*{}".format(search_path, ".json")
35 "file '{}' doesn't exist.".format(_external_deps_file))
39 "read file '{}' failed.".format(_external_deps_file))
43 module_alias = '{}:{}'.format(part_name, module_name)
61 raise Exception("file '{}' doesn't exist.".format(_deps_file))
64 raise Exception("read file '{}' failed.".format(_deps_file))
67 module_alias = '{}:{}'.format(part_name, module_name)
81 "module '{}' external deps info is incorrect.".format(
H A 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/templates/common/
H A Dexternal_deps_handler.py56 "external dep part '{}' doesn't exist.".format(external_part_name))
64 "part '{}' doesn't exist.".format(adapted_part_name))
69 "external dep module '{}' doesn't exist in part '{}'.".format(
76 "external dep module '{}' doesn't exist in part '{}'.".format(
88 raise Exception("part '{}' doesn't exist in sdk modules.".format(
99 raise Exception("part '{}' doesn't exist sdk modules.".format(
104 "external dep module '{}' doesn't exist in part '{}'.".format(
109 "external dep module '{}' doesn't exist in part '{}'.".format(
233 "external deps part '{}' variants info is None.".format(
237 dep_label_with_tc = "{}({})".format(dep_labe
[all...]
H A Dget_subsystem_name.py36 "file '{}' does not exist.".format(part_subsystem_info_file))
41 "read file '{}' failed.".format(part_subsystem_info_file))
45 raise Exception("subsystem name error, part_name='{}'".format(
/build/ohos/packages/
H A Dkernel_permission.py65 print("regist_llvm_objcopy_path failed:{}".format(e))
71 print("llvm cmd: {}".format(cmd))
87 'There is no llvm-object executable file at {}'.format(llvm_objcopy_path), '0001')
101 'kernel_permission json file {} invalid!'.format(kernel_permission_file), '0001')
111 module_name = "{}.z.so".format(target_name)
113 module_name = "lib{}.z.so".format(target_name)
114 print("module_name:{}".format(module_name))
117 print("module_path:{}".format(module_path))
143 print("encaps.json doesn't conform to json format")
184 'Please check llvm cmd: {}'.format(cm
[all...]
H A 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_path), end="")
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_pat
[all...]
/build/lite/
H A 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/indep_configs/scripts/
H A Dgn_ninja_cmd.py51 args_list.append('{}={}'.format(key, str(value).lower()))
54 args_list.append('{}="{}"'.format(key, value))
57 args_list.append('{}={}'.format(key, value))
60 args_list.append('{}="{}"'.format(key, "&&".join(value)))
74 '--args={}'.format(' '.join(_args_list)),
77 print('Excuting gn command: {} {} --args="{}" {}'.format(

Completed in 9 milliseconds

1234567