Lines Matching refs:f
72 raise Exception(f"Path to file sp_gen.mk needs to be in 'args'.")
84 with open(args["sp_gen_mk"], "a") as f:
85 f.write(f"{content}\n")
110 return os.path.join(args["out_dir"], f"{sp}.pkg")
113 with open(args["sp_gen_mk"], "r") as f:
114 sppkg_rule = [l for l in f if line in l]
153 uuid_std = uuid.UUID(f'{z[0]:08x}{z[1]:08x}{z[2]:08x}{z[3]:08x}')
171 raise Exception(f"Too many SPs in SP layout file. Max: {MAX_SP}")
177 write_to_sp_mk_gen(f"$(eval $(call add_define_val,NUM_SP,{len(sp_layout.keys())}))", args)
184 write_to_sp_mk_gen(f"FDT_SOURCES += {manifest_path}", args)
193 with open(get_sp_manifest_full_path(sp_layout[sp], args), "r") as f:
194 sp_fdt = fdt.parse_dts(f.read())
198 sp_hob_name = os.path.join(args["out_dir"], f"{sp_hob_name}")
212 sptool_args = f" --pm-offset {pm_offset}" if pm_offset is not None else ""
214 sptool_args += f" --img-offset {image_offset}" if image_offset is not None else ""
215 sptool_args += f" -o {pkg}"
216 return f'''
230 …tlc_add_hob = f"\t$(Q)$(TLCTOOL) add --entry {TE_HOB_LIST} {hob_path} {pkg}" if hob_path is not No…
231 return f'''
245 sp_dtb = os.path.join(args["out_dir"], f"fdts/{sp_dtb_name}")
249 if is_line_in_sp_gen(f'{pkg}:', args):
253 write_to_sp_mk_gen(f"SP_PKGS += {pkg}\n", args)
264 raise ValueError(f"Specified invalid pkg type {package_type}")
281 print(f"WARN: SiP Secure Partitions should not be more than {args['split']}")
306 write_to_sp_mk_gen(f"CRT_ARGS += --sp-pkg{sp_pkg_idx} {get_sp_pkg(sp, args)}\n", args)
313 … write_to_sp_mk_gen(f"FIP_ARGS += --blob uuid={str(uuid_std)},file={get_sp_pkg(sp, args)}\n", args)
319 with open(args["fconf_fragment"], "a") as f:
329 f.write(
330 f'''\