diff options
Diffstat (limited to 'stand/fdt/Makefile')
-rw-r--r-- | stand/fdt/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/stand/fdt/Makefile b/stand/fdt/Makefile new file mode 100644 index 0000000..dd31aac --- /dev/null +++ b/stand/fdt/Makefile @@ -0,0 +1,28 @@ +# $FreeBSD$ + +.include <bsd.init.mk> + +.PATH: ${SYSDIR}/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 \ + fdt_empty_tree.c fdt_addresses.c fdt_overlay.c + +# Loader's fdt commands extension sources. +SRCS+= fdt_loader_cmd.c + +CFLAGS+= -I${SYSDIR}/contrib/libfdt/ -I${LDRSRC} + +CFLAGS+= -ffreestanding + +.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips" +CFLAGS+= -msoft-float +.endif + +CFLAGS+= -Wformat -Wall + +.include <bsd.stand.mk> +.include <bsd.lib.mk> |