2010-05-25 15:21:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-10-22 22:52:27 +00:00
|
|
|
.include <bsd.init.mk>
|
|
|
|
|
|
|
|
.PATH: ${SYSDIR}/contrib/libfdt/
|
2010-05-25 15:21:39 +00:00
|
|
|
|
|
|
|
LIB= fdt
|
|
|
|
INTERNALLIB=
|
|
|
|
|
|
|
|
# Vendor sources of libfdt.
|
2015-01-05 16:52:25 +00:00
|
|
|
SRCS+= fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c \
|
|
|
|
fdt_empty_tree.c
|
2010-05-25 15:21:39 +00:00
|
|
|
|
|
|
|
# Loader's fdt commands extension sources.
|
2016-04-29 22:42:59 +00:00
|
|
|
SRCS+= fdt_loader_cmd.c fdt_overlay.c
|
2010-05-25 15:21:39 +00:00
|
|
|
|
2017-10-22 22:52:27 +00:00
|
|
|
CFLAGS+= -I${SYSDIR}/contrib/libfdt/ -I${BOOTSRC}/common/
|
2010-05-25 15:21:39 +00:00
|
|
|
|
|
|
|
CFLAGS+= -ffreestanding
|
|
|
|
|
2014-02-23 22:12:25 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips"
|
2010-05-25 15:21:39 +00:00
|
|
|
CFLAGS+= -msoft-float
|
|
|
|
.endif
|
|
|
|
|
2010-07-12 00:49:22 +00:00
|
|
|
.if ${MACHINE_ARCH} == "powerpc64"
|
|
|
|
CFLAGS+= -m32
|
|
|
|
.endif
|
|
|
|
|
2010-05-25 15:21:39 +00:00
|
|
|
CFLAGS+= -Wformat -Wall
|
|
|
|
|
2016-02-26 08:16:44 +00:00
|
|
|
.include <bsd.stand.mk>
|
2010-05-25 15:21:39 +00:00
|
|
|
.include <bsd.lib.mk>
|