freebsd-skq/stand/uboot/fdt/Makefile
Warner Losh 8a4217aacf Move some more common stuff up to Makefile.inc. In particular, the no
simd / no float stuff is centeralized here. Also centralise
-ffreestanding since it is specified everywhere.

This, along with a change to share/mk/bsd.cpu.mk to include -mno-avx2
in CFLAGS_NO_SIMD should fix building for newer machines (eg with
CPUTYPE=haswell) where clang was generating avx2 instructions.

Sponsored by: Netflix
2017-11-20 22:42:17 +00:00

24 lines
332 B
Makefile

# $FreeBSD$
.include <bsd.init.mk>
.PATH: ${LDRSRC}
LIB= uboot_fdt
INTERNALLIB=
WARNS?= 2
SRCS= uboot_fdt.c
# U-Boot library headers
CFLAGS+= -I${UBOOTSRC}/lib
# libfdt headers
CFLAGS+= -I${FDTSRC}
# Pick up the bootstrap header for some interface items
CFLAGS+= -I${LDRSRC}
.include <bsd.stand.mk>
.include <bsd.lib.mk>