bb39a9ed8e
Disable some compiler warnings for GCC (non-standard compiler) fixing build failures introduced by r293724, which enabled WARNS in the EFI boot code, when compiling with none standard compiler (GCC). Raised by: ian MFC after: 2 weeks X-MFC-With: r293268 Sponsored by: Multiplay
40 lines
771 B
Makefile
40 lines
771 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.PATH: ${.CURDIR}/../../common
|
|
|
|
LIB= efi_fdt
|
|
INTERNALLIB=
|
|
WARNS?= 6
|
|
CWARNFLAGS.gcc+= -Wno-strict-prototypes
|
|
CWARNFLAGS.gcc+= -Wno-redundant-decls
|
|
|
|
SRCS= efi_fdt.c
|
|
|
|
CFLAGS+= -ffreestanding -msoft-float
|
|
.if ${MACHINE_CPUARCH} == "aarch64"
|
|
CFLAGS+= -mgeneral-regs-only
|
|
.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:
|
|
ln -sf ${.CURDIR}/../../../${MACHINE}/include machine
|
|
|
|
CLEANFILES+= machine
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
beforedepend ${OBJS}: machine
|