freebsd-dev/sys/boot/efi/fdt/Makefile
Alexander Kabaev 19f7eeed61 Do not use -msoft-float with intention of disabling FP on aarch64
GNU GCC does does recognise it as a valid option and we already
use -mgeneral-regs-only that has the desired effect.

Reviewed by: emaste
Differential Revision:	https://reviews.freebsd.org/D10306
2017-04-07 22:58:25 +00:00

40 lines
716 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
.PATH: ${.CURDIR}/../../common
LIB= efi_fdt
INTERNALLIB=
WARNS?= 6
SRCS= efi_fdt.c
CFLAGS+= -ffreestanding
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+= -mgeneral-regs-only
.else
CFLAGS+= -msoft-float
.endif
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
# EFI library headers
CFLAGS+= -I${.CURDIR}/../include
CFLAGS+= -I${.CURDIR}/../include/${MACHINE}
# libfdt headers
CFLAGS+= -I${.CURDIR}/../../fdt
# Pick up the bootstrap header for some interface items
CFLAGS+= -I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.
machine: .NOMETA
ln -sf ${.CURDIR}/../../../${MACHINE}/include machine
CLEANFILES+= machine
.include <bsd.lib.mk>
beforedepend ${OBJS}: machine