Lines Matching refs:f
63 raise Exception(f"Path to file sp_gen.mk needs to be in 'args'.")
75 with open(args["sp_gen_mk"], "a") as f:
76 f.write(f"{content}\n")
88 return os.path.join(args["out_dir"], f"{sp}.pkg")
91 with open(args["sp_gen_mk"], "r") as f:
92 sppkg_rule = [l for l in f if line in l]
119 raise Exception(f"Too many SPs in SP layout file. Max: {MAX_SP}")
126 write_to_sp_mk_gen(f"FDT_SOURCES += {manifest_path}", args)
134 sp_dtb = os.path.join(args["out_dir"], f"fdts/{sp_dtb_name}")
137 if is_line_in_sp_gen(f'{sp_pkg}:', args):
139 write_to_sp_mk_gen(f"SP_PKGS += {sp_pkg}\n", args)
141 sptool_args = f" -i {get_sp_img_full_path(sp_layout[sp], args)}:{sp_dtb}"
143 sptool_args += f" --pm-offset {pm_offset}" if pm_offset is not None else ""
145 sptool_args += f" --img-offset {image_offset}" if image_offset is not None else ""
146 sptool_args += f" -o {sp_pkg}"
147 sppkg_rule = f'''
166 print(f"WARN: SiP Secure Partitions should not be more than {args['split']}")
191 write_to_sp_mk_gen(f"CRT_ARGS += --sp-pkg{sp_pkg_idx} {get_sp_pkg(sp, args)}\n", args)
211 uuid_std = uuid.UUID(f'{z[0]:08x}{z[1]:08x}{z[2]:08x}{z[3]:08x}')
212 … write_to_sp_mk_gen(f"FIP_ARGS += --blob uuid={str(uuid_std)},file={get_sp_pkg(sp, args)}\n", args)