/build/lite/hb_internal/common/ |
D | utils.py | 52 raise OHOSException(f'{input_file} not found') 66 raise OHOSException(f'{input_file} not found') 75 raise OHOSException(f'{input_file} load failed, error line:' 76 f' {mark.line + 1}:{mark.column + 1}') 148 raise OHOSException(f'command: "{cmd}" failed\n' 149 f'return code: {ret}\n' 150 f'execution path: {os.getcwd()}') 160 raise OHOSException(f"{path} makedirs failed") 165 raise OHOSException(f"{path} exists, makedirs failed") 232 msg = msg.replace('error:', f'{Colors.ERROR}error{Colors.END}:') [all …]
|
D | device.py | 64 raise OHOSException(f'cannot find {kernel_type}_{kernel_version} ' 65 f'in {board_path}') 99 raise OHOSException(f'kernel_type or kernel_version ' 100 f'not found in {config}') 108 raise OHOSException(f'invalid path: {path}') 120 raise OHOSException(f'board_toolchain_type is None in {config}')
|
D | product.py | 117 f'{info["product_device"]}.json') 159 raise OHOSException(f'wrong version number in {product_json}') 164 raise OHOSException(f'features {product_json} not found') 193 _item = f'{key}={str(val).lower()}' 195 _item = f'{key}={val}' 197 _item = f'{key}="{val}"' 207 raise OHOSException(f'{product_json} not found') 234 raise OHOSException(f'product {product_name}@{company} not found') 262 product_key = f'{product[0]}@{product[1]}'
|
/build/common/asan/ |
D | resolve_asan_log.sh | 23 for f in $(find "${logdir}" -type f -name 'asan.log.*' -a '!' -name '*.resolved'); do 24 echo resolve $f 25 ./symbolize.sh --max-count 100 < "$f" > "$f".resolved
|
D | asan_helper.c | 61 char *f = NULL; in dlopen() local 63 asprintf(&f, "/data%s", (p ? p : file)); in dlopen() 64 if (f == NULL) { in dlopen() 73 fprintf(logFile, "[%d:%d](%s) dlopen %s --> %s\n", getpid(), gettid(), name, file, f); in dlopen() 76 void *ret = real_dlopen(f, mode); in dlopen() 77 free(f); in dlopen() 78 f = NULL; in dlopen()
|
D | build_mixed_asan.sh | 135 for f in ${cfg_group[@]/%/.cfg}; do 136 if [ -f system/etc/init/$f ]; then 137 echo "$f is found in /system/etc/init/" 138 sed -i 's,/system/bin/,/data/bin/,g' system/etc/init/$f 139 sed -i '/"critical"/d' system/etc/init/$f 140 … for xml in $(sed -n '/\/data\/bin\/sa_main/s/.*"\([^" ]*.xml\)".*/\1/p' system/etc/init/$f); do 144 elif [ -f vendor/etc/init/$f ]; then 145 echo "$f is found in /vendor/etc/init/" 146 sed -i 's,/vendor/bin/,/data/bin/,g' vendor/etc/init/$f 147 sed -i 's,/system/bin/,/data/bin/,g' vendor/etc/init/$f [all …]
|
/build/scripts/ |
D | copy_ex.py | 105 def copy_file(f, argument 111 if os.path.isdir(f): 112 copy_tree(f, 113 os.path.join(dest, os.path.basename(f)), 116 deps.extend(build_utils.get_all_files(f)) 118 if os.path.isfile(os.path.join(dest, os.path.basename(f))): 119 dest = os.path.join(dest, os.path.basename(f)) 121 deps.append(f) 124 if filecmp.cmp(dest, f, shallow=False): 131 shutil.copy(f, dest) [all …]
|
D | find.py | 48 for f in fnmatch.filter(files, options.pattern): 52 os.path.relpath(os.path.join(root, f), 58 print(os.path.join(root, f))
|
D | ninja2trace.py | 47 with open(filename, mode='r') as f: 48 firstline = f.readline() 53 for _, line in enumerate(f.readlines()): 100 with gzip.open(dest_file_name, "wt") as f: 101 json.dump(tracelist, f)
|
/build/lite/make_rootfs/ |
D | rootfs_linux.config | 1 /bin/apphilogcat f 500 4 4 2 /bin/sh f 500 2 2 3 /bin/toybox f 555 0 0 4 /bin/foundation f 500 7 7
|
D | rootfs_liteos.config | 1 /bin/foundation f 500 7 7 2 /bin/apphilogcat f 500 4 4 3 /bin/hidumper f 500 4 4
|
/build/tools/component_tools/ |
D | full_components_generator.py | 58 with open(file, "rb") as f: 59 data = json.load(f) 68 with open(file, "rb") as f: 69 data = json.load(f) 95 with open(subsys_file, "rb") as f: 96 data = json.load(f) 135 with open(args.out, "w") as f: 136 f.write(json.dumps(ret, indent=2))
|
D | parse_kconf.py | 37 with open(path, "rb") as f: 38 data = json.load(f) 50 with open(path, "rb") as f: 51 data = json.load(f) 128 with open(kconf, "r") as f: 129 for line in f.readlines(): 164 with open(out, "w") as f: 165 f.write(json.dumps(result, indent=2))
|
D | generate_kconfig.py | 53 with open(file, "rb") as f: 54 data = json.load(f) 59 with open(outpath, "w") as f: 60 f.writelines(result)
|
/build/toolchain/mac/ |
D | get_tool_mtime.py | 17 for f in sys.argv[1:]: 18 variable = os.path.splitext(os.path.basename(f))[0] 19 print('%s = %d' % (variable, os.path.getmtime(f)))
|
/build/lite/hb_internal/build/ |
D | patch_process.py | 54 raise OHOSException(f'{patch_cfg} not found, ' 76 raise OHOSException(f'{src_path} not exist, stop applying patch') 85 raise OHOSException(f'patch {patch} not exist for ' 86 f'{src_path}, stop applying patch') 88 cmd = f'patch -p1 -R < {patch_path}' 90 cmd = f'patch -p1 < {patch_path}'
|
/build/tools/ |
D | product_config_version_convert.py | 26 with open(products_path,'r+',encoding='utf-8') as f: 27 data = json.load(f) 58 with open(path,'r+',encoding='utf-8') as f: 59 data = json.load(f) 89 f.seek(0) 90 f.write(json_data) 91 f.truncate()
|
/build/scripts/util/ |
D | build_utils.py | 79 files.extend((os.path.join(root, f) for f in matched_files)) 85 with open(path) as f: 86 return dict(l.rstrip().split('=', 1) for l in f) 161 delete=False) as f: 164 os.fchmod(f.fileno(), 0o664) 165 yield f 168 f.close() 170 and filecmp.cmp(f.name, path)): 171 shutil.move(f.name, path) 173 if os.path.exists(f.name): [all …]
|
/build/ohos/ndk/ |
D | archive_ndk.py | 48 for f in filenames: 49 if f not in filter_file_name: 50 files.extend([os.path.join(root, f)]) 52 for f in files: 53 compress = compress_fn(f) if compress_fn else None 55 zip_path = os.path.join(prefix, os.path.relpath(f, directory)) 57 zip_path = os.path.relpath(f, directory) 60 src_path=f,
|
D | generate_ndk_docs.py | 51 with open(doxygen_file.name, 'r') as f: 52 contents = f.read() 66 with open(doxygen_file.name, 'w') as f: 67 f.write(contents) 97 for f in filenames: 98 depfile_deps += ([os.path.join(root, f)])
|
D | generate_version_script.py | 49 with open(options.ndk_description_file, 'r') as f: 50 interfaces = json.load(f) 54 with open(options.output, 'w') as f: 55 f.write(MAP_FILE_TEMPLATE %
|
D | generate_ndk_stub_file.py | 47 with open(options.ndk_description_file, 'r') as f: 48 interfaces = json.load(f) 55 with open(options.output, 'w') as f: 56 f.write('\n'.join(contents))
|
/build/lite/ |
D | gen_module_notice_file.py | 130 with open(nf_src, 'rt') as f: 131 nf_dict["license_content"] = decode(f.read()) 132 with open(cp_src, 'rt') as f: 133 nf_dict["copyright"] = decode(f.read()) 135 with open(target_license_path, 'at') as f: 136 f.write("Software: {}\n\n".format(encode(nf_dict["software"]))) 137 f.write("Copyright notice: \n{}\n".format( 139 f.write("License: {}\n{}\n\n".format(
|
/build/ohos/packages/ |
D | system_gzip_package.py | 55 for f in files: 56 if os.path.exists(f): 59 if f in additional_files: 60 tar.add(f, arcname=os.path.basename(f)) 62 tar.add(f, arcname='system')
|
/build/ohos/sdk/ |
D | add_notice_file.py | 41 [os.path.join(root, f) for f in files if f.endswith('.zip')])
|