022e692a47
Set WARNS if not set for EFI boot code and fix the issues highlighted by setting it. Most components are set to WARNS level 6 with few being left at lower levels due to the amount of changes needed to fix at higher levels. Error types fixed: * Missing / invalid casts * Missing inner structs * Unused vars * Missing static for internal only funcs * Missing prototypes * Alignment changes * Use of uninitialised vars * Unknown pragma (intrinsic) * Missing types etc due to missing includes * printf formatting types Reviewed by: emaste (in part) MFC after: 2 weeks X-MFC-With: r293268 Sponsored by: Multiplay Differential Revision: https://reviews.freebsd.org/D4839
38 lines
693 B
Makefile
38 lines
693 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.PATH: ${.CURDIR}/../../common
|
|
|
|
LIB= efi_fdt
|
|
INTERNALLIB=
|
|
WARNS?= 6
|
|
|
|
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
|