mirror of
https://github.com/opnsense/src.git
synced 2026-02-21 08:50:22 -05:00
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
29 lines
495 B
Makefile
29 lines
495 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.init.mk>
|
|
|
|
.PATH: ${LDRSRC}
|
|
|
|
LIB= uboot
|
|
INTERNALLIB=
|
|
WARNS?= 2
|
|
|
|
SRCS= console.c copy.c devicename.c elf_freebsd.c glue.c
|
|
SRCS+= module.c net.c reboot.c time.c
|
|
|
|
.if ${LOADER_DISK_SUPPORT:Uyes} == "yes"
|
|
SRCS+= disk.c
|
|
.endif
|
|
|
|
.include "${BOOTSRC}/fdt.mk"
|
|
|
|
# Pick up the bootstrap header for some interface items
|
|
CFLAGS+= -I${LDRSRC}
|
|
|
|
.ifdef(BOOT_DISK_DEBUG)
|
|
# Make the disk code more talkative
|
|
CFLAGS+= -DDISK_DEBUG
|
|
.endif
|
|
|
|
.include <bsd.stand.mk>
|
|
.include <bsd.lib.mk>
|