aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2025-11-16 23:53:47 +0000
committerWarner Losh <imp@FreeBSD.org>2025-11-16 23:55:14 +0000
commit60f14d05d217715240ba48bdf3c08f1aa5ead8d0 (patch)
tree34728bcbd3547b1b9803a123c4f139935a2b674e
parentaf6d77c0bd0166dc9376b98aab79dfe806d95106 (diff)
edk2: Fix fdt build
x86 doesn't use FDT things by default, but aarch64 does. I thought I'd built the loader on aarch64 to test the EDK2 all the things series, but apparently not. This fixes the aarch64 build. Fixes: 43b8edb32051 Sponsored by: Netflix
-rw-r--r--stand/efi/fdt/Makefile1
-rw-r--r--stand/efi/fdt/efi_fdt.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/stand/efi/fdt/Makefile b/stand/efi/fdt/Makefile
index bbb380f52184..15a42614a422 100644
--- a/stand/efi/fdt/Makefile
+++ b/stand/efi/fdt/Makefile
@@ -12,6 +12,7 @@ SRCS= efi_fdt.c
# EFI library headers
CFLAGS+= -I${EFISRC}/include
CFLAGS+= -I${EFISRC}/include/${MACHINE}
+CFLAGS+= -I${EDK2INC}
# libfdt headers
CFLAGS+= -I${FDTSRC}
diff --git a/stand/efi/fdt/efi_fdt.c b/stand/efi/fdt/efi_fdt.c
index adf830e44182..56e7361a8d9f 100644
--- a/stand/efi/fdt/efi_fdt.c
+++ b/stand/efi/fdt/efi_fdt.c
@@ -31,6 +31,8 @@
#include <efi.h>
#include <efilib.h>
#include <fdt_platform.h>
+#include <Uefi.h>
+#include <Guid/Fdt.h>
#include "bootstrap.h"