Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 64) sorted by relevance

123

/build/lite/hb_internal/common/
Dutils.py52 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 …]
Ddevice.py64 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}')
Dproduct.py117 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/
Dresolve_asan_log.sh23 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
Dasan_helper.c61 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()
Dbuild_mixed_asan.sh135 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/
Dcopy_ex.py105 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 …]
Dfind.py48 for f in fnmatch.filter(files, options.pattern):
52 os.path.relpath(os.path.join(root, f),
58 print(os.path.join(root, f))
Dninja2trace.py47 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/
Drootfs_linux.config1 /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
Drootfs_liteos.config1 /bin/foundation f 500 7 7
2 /bin/apphilogcat f 500 4 4
3 /bin/hidumper f 500 4 4
/build/tools/component_tools/
Dfull_components_generator.py58 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))
Dparse_kconf.py37 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))
Dgenerate_kconfig.py53 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/
Dget_tool_mtime.py17 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/
Dpatch_process.py54 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/
Dproduct_config_version_convert.py26 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/
Dbuild_utils.py79 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/
Darchive_ndk.py48 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,
Dgenerate_ndk_docs.py51 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)])
Dgenerate_version_script.py49 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 %
Dgenerate_ndk_stub_file.py47 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/
Dgen_module_notice_file.py130 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/
Dsystem_gzip_package.py55 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/
Dadd_notice_file.py41 [os.path.join(root, f) for f in files if f.endswith('.zip')])

123