/build/lite/hb_internal/env/ |
D | env.py | 45 hb_info('necessary_package: {}'.format(','.join(packages_info[0]))) 46 hb_info('installed_package: {}'.format(','.join(packages_info[1]))) 47 hb_info('uninstalled_package: {}'.format(','.join(packages_info[2]))) 60 hb_info('root path: {}'.format(root_path)) 61 hb_info('board: {}'.format(board)) 62 hb_info('kernel: {}'.format(kernel)) 63 hb_info('product: {}'.format(product)) 64 hb_info('product path: {}'.format(product_path)) 65 hb_info('device path: {}'.format(device_path)) 66 hb_info('device company: {}'.format(device_company)) [all …]
|
/build/loader/ |
D | generate_targets_gn.py | 87 parts_list_content = '"{}",'.format('",\n "'.join(parts_list)) 89 parts_list_gni_template.format(parts_list_content)) 94 inner_kits_content = '"{}",'.format('",\n "'.join(inner_kits_list)) 98 inner_kits_gni_template.format(inner_kits_content)) 103 system_kits_content = '"{}",'.format('",\n "'.join(system_kits_list)) 107 system_kits_gni_template.format(system_kits_content)) 112 test_list_content = '"{}",'.format('",\n "'.join(parts_test_list)) 116 parts_test_gni_template.format(test_list_content)) 126 phony_target_list.append('{}_phony'.format(part_name)) 128 phony_group_template.format(part_name, part_label)) [all …]
|
D | load_bundle_file.py | 32 raise Exception("file '{}' doesn't exist.".format( 36 raise Exception("read file '{}' failed.".format( 43 _tip_info = "bundle.json info is incorrect in '{}'".format( 46 raise Exception("{}, 'component' is required.".format(_tip_info)) 50 "{}, 'component.name' is required.".format(_tip_info)) 53 "{}, 'component.subsystem' is required.".format(_tip_info)) 56 "{}, 'component.build' is required.".format(_tip_info)) 60 … "{}, 'component.build.sub_component' or 'component.build.group_type' is required.".format( 67 raise Exception("{}, incorrect group type".format(_tip_info)) 85 _key = '{}:{}'.format(_subsystem_name, _part_name)
|
D | load_ohos_build.py | 75 label = '//{}/{}'.format(path, label) 81 "config file '{}' doesn't exist.".format(bundle_file)) 84 raise Exception("read file '{}' failed.".format(bundle_file)) 92 "config file '{}' doesn't exist.".format(ohos_build_file)) 95 raise Exception("read file '{}' failed.".format(ohos_build_file)) 106 _real_name = '{}_{}'.format(part_name, variant_name) 129 lib_config.append(' type = "{}"'.format(lib_type)) 130 lib_config.append(' name = "{}"'.format(label)) 137 lib_config.append(' "{}",'.format(h_file)) 140 lib_config.append(' header_base = "{}"'.format(header_base)) [all …]
|
D | platforms_loader.py | 39 raise Exception("config file '{}' doesn't exist.".format( 43 raise Exception("read file '{}' failed.".format( 57 raise Exception(error_info.format(_name)) 58 arch = "{}_{}".format(target_os, target_cpu) 72 raise Exception(error_info.format(_name)) 73 arch = "{}_{}".format(target_os, target_cpu) 86 "config file '{}' doesn't exist.".format(platform_config_file)) 90 "read file '{}' failed.".format(platform_config_file)) 114 'target_platforms', "{}.build".format(_platform_name)) 124 _platform_config_file = '{}.build'.format(_platform_name)
|
/build/lite/hb_internal/common/ |
D | misc.py | 77 '{}/build/scripts/util/pyd.py'.format(self._root_path), 89 os.rename(logfile, '{}/build.{}.log'.format(self._out_path, mtime)) 122 'python3', '{}/build/scripts/util/pyd.py'.format(self._root_path), 129 'python3', '{}/build/scripts/util/pyd.py'.format(self._root_path), 136 'python3', '{}/build/scripts/util/pyd.py'.format(self._root_path), 151 'python3', '{}/build/scripts/summary_ccache_hitrate.py'.format( 152 self._root_path), '{}/{}'.format(self._root_path, ccache_log_file_name) 159 '{}/build/scripts/get_warnings.py'.format(self._root_path), 161 '{}/build.log'.format(self._out_path), 163 '{}/packages/WarningList.txt'.format(self._out_path), [all …]
|
/build/scripts/ |
D | ninja_rules_parser.py | 27 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 …]
|
D | tools_checker.py | 30 print("Running: {}".format(' '.join(cmd))) 66 _build_package_list = file_json["{}".format(_version)]["dep_package"] 72 format(pkg)) 95 print("\033[33m OS {} is not supported for ohos build.\033[0m".format( 105 format(host_version)) 106 print("\033[33m Available OS version are {}.\033[0m".format(
|
D | interface_mgr.py | 38 sys.stdout.write("read file failed. {}".format(err)) 57 "subsystem sdk out dir '{}' not exist or not dir".format( 72 check_content.append('{} {}'.format(h_file, file_sha256)) 98 'sdk base dir [{}] does not exist.'.format(sdk_base_dir)) 123 format(subsystem_name, module_name, check_file)) 135 'the number of files is different.').format( 144 format(subsystem_name, module_name, h_file))
|
/build/tools/module_dependence/ |
D | dependence_analysis.py | 24 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(
|
D | module_deps_tree.py | 27 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/ |
D | pycache.py | 30 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)
|
D | file_utils.py | 25 print("file '{}' doesn't exist.".format(input_file)) 33 print("The file '{}' format is incorrect.".format(input_file)) 36 print("read file '{}' failed.".format(input_file)) 44 print("file '{}' doesn't exist.".format(input_file)) 53 print("read file '{}' failed".format(input_file))
|
D | pyd.py | 34 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/ |
D | prebuilts_download.py | 66 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 68 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 70 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path) 80 progress.console.log('Requesting {}'.format(url)) 84 progress.console.log("Failed to open {}, HTTPError: {}".format(url, e.code), style='red') 91 progress.console.log("Downloaded {}".format(local_file)) 94 progress.console.log("Decompressing {}".format(local_file)) 96 progress.console.log("Decompressed {}".format(local_file)) 101 print('Requesting {}, please wait'.format(url)) 105 print("Failed to open {}, HTTPError: {}".format(url, e.code)) [all …]
|
/build/ohos/notice/ |
D | collect_system_notice_files.py | 54 "{}.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))
|
D | collect_module_notice_file.py | 63 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)
|
D | merge_notice_files.py | 83 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/templates/common/ |
D | external_deps_handler.py | 45 "external dep part '{}' doesn't exist.".format(external_part_name)) 53 "part '{}' doesn't exist.".format(adapted_part_name)) 58 "external dep module '{}' doesn't exist in part '{}'.".format( 62 "external dep module '{}' doesn't exist in part '{}'.".format( 73 raise Exception("part '{}' doesn't exist in sdk modules.".format( 84 raise Exception("part '{}' doesn't exist sdk modules.".format( 89 "external dep module '{}' doesn't exist in part '{}'.".format( 94 "external dep module '{}' doesn't exist in part '{}'.".format( 198 "external deps part '{}' variants info is None.".format( 202 dep_label_with_tc = "{}({})".format(dep_label, toolchain) [all …]
|
D | get_subsystem_name.py | 36 "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/lite/ |
D | utils.py | 47 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/tools/component_tools/ |
D | generate_kconfig.py | 37 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/ohos/sa_profile/ |
D | src_sa_profile_process.py | 29 raise Exception("read file '{}' failed.".format(sa_profile_infos)) 35 "get part name failed in sa info, part_name='{}'".format( 40 part_name = '{}_{}'.format(origin_part_name, platform_name) 61 "read file '{}' failed.".format(args.variants_toolchain_file))
|
/build/ohos/packages/ |
D | high_privilege_process_validate.py | 90 print("Cfg location: {}".format(self.loc)) 159 …print("Name: {}\nuid: {}\ngiven uid: {}\ngid: ".format(i[0], i[1].uid, i[1].related_item.uid), end… 169 print("Cfg location: {}".format(i[1].loc)) 182 … print("Error: {}is not a valid whilelist, it has not a wanted field name".format(process_path)) 245 parse_cfg_file("{}/{}".format(cfg_dir, file)) 255 print("High-privilege process check skipped: file [{}] not exist".format(sys_cfg_folder)) 260 print("High-privilege process check skipped: file [{}] not exist".format(vendor_cfg_folder)) 265 print("High-privilege process check skipped: file [{}] not exist".format(process_path))
|
/build/ohos/statistics/ |
D | build_overlap_statistics.py | 106 pattern = '{}*'.format(path) 108 pattern = '../../{}*'.format(path) 127 print('{} targets overlap rate statistics'.format(program_language)) 128 print('{:16}\t{:8}\t{:5}\t{:8}\t{:5}\t{:4}'.format( 133 print('{:16}\t{:8}\t{:2.1f}%\t{:8}\t{:2.1f}%\t{:.2f}'.format( 137 print('\n{} overall build overlap rate: {:.2f}\n\n'.format(
|