Lines Matching +full:- +full:- +full:no +full:- +full:verbose

3 # SPDX-License-Identifier: Apache-2.0
15 def verbose(msg): function
16 if args.verbose:
37 verbose("Entry point address (symbol: %s) 0x%x" % (ENTRY_SYM, entry_addr))
57 verbose("%d bytes of data at 0x%x, data offset %d"
63 bytesz = h.p_memsz - h.p_filesz
65 verbose("%d bytes of zero-fill at 0x%x" % (bytesz, addr))
68 verbose(f"{len(data_blob)} bytes of data to include in image")
73 cf = open("zefi-segments.h", "w")
77 cf.write("/* Sizes and offsets specified in 4-byte units.\n")
78 cf.write(" * All addresses 4-byte aligned.\n")
104 verbose("Metadata header generated.")
112 # + We need pic to enforce that the linker adds no relocations
113 # + UEFI can take interrupts on our stack, so no red zone
114 # + UEFI API assumes 16-bit wchar_t
117 includes.extend(["-I", include_dir])
118 cmd = ([args.compiler, "-shared", "-Wall", "-Werror", "-I."] + includes +
119 ["-fno-stack-protector", "-fpic", "-mno-red-zone", "-fshort-wchar",
120 "-Wl,-nostdlib", "-T", ldscript, "-o", "zefi.elf", cfile])
121 verbose(" ".join(cmd))
125 cmd = [args.objcopy, "-O", "binary", "-j", ".data", "zefi.elf", "data.dat"]
126 verbose(" ".join(cmd))
135 subprocess.run([args.objcopy, "--update-section", ".data=data.dat",
138 # Convert it to a PE-COFF DLL.
139 cmd = [args.objcopy, "--target=efi-app-x86_64",
140 "-j", ".text", "-j", ".reloc", "-j", ".data",
142 verbose(" ".join(cmd))
145 verbose("Build complete; zephyr.efi wrapper binary is ready")
153 parser.add_argument("-c", "--compiler", required=True, help="Compiler to be used")
154 parser.add_argument("-o", "--objcopy", required=True, help="objcopy to be used")
155 parser.add_argument("-f", "--elf-file", required=True, help="Input file")
156 parser.add_argument("-v", "--verbose", action="store_true", help="Verbose output")
157 parser.add_argument("-i", "--includes", required=True, nargs="+",
165 verbose(f"Working on {args.elf_file} with {args.includes}...")