Home
last modified time | relevance | path

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

123456

/build/hb/util/loader/
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_mo…
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('",\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)
138 lib_config.append(' type = "{}"'.format(lib_type))
139 lib_config.append(' name = "{}"'.format(label))
146 lib_config.append(' "{}",'.format(h_file))
149 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.py42 raise OHOSException("config file '{}' doesn't exist.".format(
46 raise OHOSException("read file '{}' failed.".format(
60 raise OHOSException(error_info.format(_name), "2012")
61 arch = "{}_{}".format(target_os, target_cpu)
75 raise OHOSException(error_info.format(_name), "2012")
76 arch = "{}_{}".format(target_os, target_cpu)
89 "config file '{}' doesn't exist.".format(platform_config_file))
93 "read file '{}' failed.".format(platform_config_file))
121 'target_platforms', "{}.build".format(_platform_name))
131 _platform_config_file = '{}.build'.format(_platform_name)
[all …]
/build/test/example/
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))
108 log_info("select_exec cmd is :{}".format(" ".join(cmd)))
135 log_error("An error occurred: {}".format(err))
171 log_error("An error occurred: {}".format(e))
177 log_info("communicate_exec cmd is :{}".format(" ".join(cmd)))
191 log_error("An error occurred: {}".format(e))
[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/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.py31 print("Running: {}".format(' '.join(cmd)))
70 _build_package_list = file_json["{}".format(
77 format(pkg))
101 print("\033[33m OS {} is not supported for ohos build.\033[0m".format(
111 format(host_version))
112 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/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/hb/services/
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')
101 args_list.append('{}={}'.format(key, str(value).lower()))
104 args_list.append('{}="{}"'.format(key, value))
107 args_list.append('{}={}'.format(key, value))
110 args_list.append('{}="{}"'.format(key, "&&".join(value)))
126 flags_list.append('{}'.format(key))
128 flags_list.append('{}={}'.format(key, str(value)).lower())
151 … 'choose from {}'.format(option_name, option_value, sub_optional_list), '3006')
[all …]
Dloader.py70 self.target_arch = '{}_{}'.format(self.target_os, self.target_cpu)
196 " by this part, part_name='{}', feature='{}'".format(
278 … need start with \"SystemCapability.\"""".format(syscap['component'], syscap_string), "2009")
305 "generate syscap info file to '{}'".format(syscap_info_json), mode=self.config.log_mode)
312 LogUtil.hb_info("generate syscap info with part name list to '{}'".format(
320 LogUtil.hb_info("generate target syscap for init list to '{}'".format(
343 LogUtil.hb_info("generate infos for testfwk to '{}'".format(
358 LogUtil.hb_info("generate target platform parts to '{}'".format(
374 LogUtil.hb_info("generate part different info to '{}'".format(
387 … _gni_file_content = ['target_platform_list = [', ' "{}"'.format('",\n "'.join(_platforms)), ']',
[all …]
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 …]
/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/
Dprebuilts_download.py44 print('remote file {}.sha256 is not found, begin check SHASUMS256.txt'.format(check_url))
82 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
84 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
86 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
97 progress.console.log('Requesting {}'.format(url))
101 … progress.console.log("Failed to open {}, HTTPError: {}".format(url, e.code), style='red')
108 progress.console.log("Downloaded {}".format(local_file))
113 progress.console.log("Decompressing {}".format(local_file))
115 progress.console.log("Decompressed {}".format(local_file))
121 … with three times retry, please check network status. Prebuilts download exit.'.format(local_file))
[all …]
/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))
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])
233 zipfiles = glob.glob('{}/**/*.zip'.format(notice_dir), recursive=True)
[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(
212 "external deps part '{}' variants info is None.".format(
216 dep_label_with_tc = "{}({})".format(dep_label, toolchain)
[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/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))
/build/hb/util/preloader/
Dparse_vendor_product_config.py30 print("Warning: invalid feature [{}]".format(feat))
54 raise Exception("Error: invalid syscap [{}]".format(feat))
91 parts['{}:{}'.format(ss_name, com_name)] = pairs
93 parts['{}:{}'.format(ss_name, com_name)] = dict()
96 parts.get('{}:{}'.format(ss_name, com_name)).update(pairs)
99 parts.get('{}:{}'.format(ss_name, com_name)).update(pairs)
104 parts['{}:{}'.format(ss_name, com_name)][key] = val

123456