]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[efi] Install a device tree for the booted OS, if available
authorMichael Brown <mcb30@ipxe.org>
Fri, 28 Mar 2025 14:20:44 +0000 (14:20 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 28 Mar 2025 15:29:53 +0000 (15:29 +0000)
commitb20f506a7217ce18f08ec007467365f9e118c445
tree8f87d3d8da72a85485e689bf30022560b92f2088
parent761f43ce123115d58a60378b6f8b6eb9e9968f2e
[efi] Install a device tree for the booted OS, if available

If we have a device tree available (e.g. because the user has
explicitly downloaded a device tree using the "fdt" command), then
provide it to the booted operating system as an EFI configuration
table.

Since x86 does not typically use device trees, we create weak symbols
for efi_fdt_install() and efi_fdt_uninstall() to avoid dragging FDT
support into all x86 UEFI binaries.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/image/efi_image.c
src/include/ipxe/efi/efi_fdt.h [new file with mode: 0644]
src/interface/efi/efi_fdt.c