2010-05-25 11:21:39 -04:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../contrib/libfdt/
|
|
|
|
|
|
|
|
|
|
LIB= fdt
|
|
|
|
|
INTERNALLIB=
|
|
|
|
|
|
|
|
|
|
# Vendor sources of libfdt.
|
2015-01-05 11:52:25 -05: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 11:21:39 -04:00
|
|
|
|
|
|
|
|
# Loader's fdt commands extension sources.
|
2016-04-29 18:42:59 -04:00
|
|
|
SRCS+= fdt_loader_cmd.c fdt_overlay.c
|
2010-05-25 11:21:39 -04:00
|
|
|
|
2014-11-01 13:12:44 -04:00
|
|
|
CFLAGS+= -I${.CURDIR}/../../contrib/libfdt/ -I${.CURDIR}/../common/
|
2010-05-25 11:21:39 -04:00
|
|
|
|
|
|
|
|
CFLAGS+= -ffreestanding
|
|
|
|
|
|
2014-02-23 17:12:25 -05:00
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips"
|
2010-05-25 11:21:39 -04:00
|
|
|
CFLAGS+= -msoft-float
|
|
|
|
|
.endif
|
|
|
|
|
|
2010-07-11 20:49:22 -04:00
|
|
|
.if ${MACHINE_ARCH} == "powerpc64"
|
|
|
|
|
CFLAGS+= -m32
|
|
|
|
|
.endif
|
|
|
|
|
|
2010-05-25 11:21:39 -04:00
|
|
|
CFLAGS+= -Wformat -Wall
|
|
|
|
|
|
2016-02-26 03:16:44 -05:00
|
|
|
.include <bsd.stand.mk>
|
2010-05-25 11:21:39 -04:00
|
|
|
.include <bsd.lib.mk>
|