8a4217aacf
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
24 lines
332 B
Makefile
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>
|