aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/fdt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'stand/efi/fdt/Makefile')
-rw-r--r--stand/efi/fdt/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/stand/efi/fdt/Makefile b/stand/efi/fdt/Makefile
new file mode 100644
index 000000000000..7308ce94e45e
--- /dev/null
+++ b/stand/efi/fdt/Makefile
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+.include <bsd.init.mk>
+
+.PATH: ${LDRSRC}
+
+LIB= efi_fdt
+INTERNALLIB=
+WARNS?= 6
+
+SRCS= efi_fdt.c
+
+CFLAGS+= -ffreestanding
+.if ${MACHINE_CPUARCH} == "aarch64"
+CFLAGS+= -mgeneral-regs-only
+.else
+CFLAGS+= -msoft-float
+.endif
+
+# EFI library headers
+CFLAGS+= -I${EFISRC}/include
+CFLAGS+= -I${EFISRC}/include/${MACHINE}
+
+# libfdt headers
+CFLAGS+= -I${FDTSRC}
+
+# Pick up the bootstrap header for some interface items
+CFLAGS+= -I${LDRSRC}
+
+.include <bsd.lib.mk>