]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[build] Allow genfsimg to be used on third party UEFI binaries
authorMichael Brown <mcb30@ipxe.org>
Tue, 19 Jan 2021 23:47:44 +0000 (23:47 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 19 Jan 2021 23:49:58 +0000 (23:49 +0000)
commit117353815595c46a29a3aebec966ab94f6a4b3c8
treef894a939c56908954f2befcdd3e1103cb32a5145
parent3a9621a6fb9d7fda9dcab9efde6b5c586ceda470
[build] Allow genfsimg to be used on third party UEFI binaries

Extract the PE header offset from the MZ header rather than assuming a
fixed offset as used in the binaries created by the iPXE build system.

This allows genfsimg to be used to create bootable filesystem images
from third party UEFI binaries such as the UEFI shell.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/genfsimg