summaryrefslogtreecommitdiffstats
path: root/sys/boot/fdt/Makefile
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2010-05-25 15:21:39 +0000
committerraj <raj@FreeBSD.org>2010-05-25 15:21:39 +0000
commit4dbde3c9b95a26e2577ac32058a85c7277d419f2 (patch)
tree083efe2b44c3dccb2f0a01c264ccfd3af3ca0af5 /sys/boot/fdt/Makefile
parent08c219d72b905839e115a4a5bbea2f884fbfa970 (diff)
downloadFreeBSD-src-4dbde3c9b95a26e2577ac32058a85c7277d419f2.zip
FreeBSD-src-4dbde3c9b95a26e2577ac32058a85c7277d419f2.tar.gz
Initial loader(8) support for Flattened Device Tree.
o This is disabled by default for now, and can be enabled using WITH_FDT at build time. o Tested with ARM and PowerPC. Reviewed by: imp Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/boot/fdt/Makefile')
-rw-r--r--sys/boot/fdt/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/boot/fdt/Makefile b/sys/boot/fdt/Makefile
new file mode 100644
index 0000000..32ebce8
--- /dev/null
+++ b/sys/boot/fdt/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../contrib/libfdt/
+
+LIB= fdt
+INTERNALLIB=
+
+# Vendor sources of libfdt.
+SRCS+= fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c
+
+# Loader's fdt commands extension sources.
+SRCS+= fdt_loader_cmd.c
+
+CFLAGS+= -I${.CURDIR}/../../contrib/libfdt/ -I${.CURDIR}/../common/ \
+ -I${.CURDIR}/../uboot/lib
+
+CFLAGS+= -ffreestanding
+
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
+CFLAGS+= -msoft-float
+.endif
+
+CFLAGS+= -Wformat -Wall
+
+.include <bsd.lib.mk>
OpenPOWER on IntegriCloud