Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/efi/libefi/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
.if ${MK_FORTH} != "no" | .if ${MK_FORTH} != "no" | ||||
CFLAGS+= -DBOOT_FORTH | CFLAGS+= -DBOOT_FORTH | ||||
.include "${.CURDIR}/../../Makefile.ficl" | .include "${.CURDIR}/../../Makefile.ficl" | ||||
.endif | .endif | ||||
LIB= efi | LIB= efi | ||||
INTERNALLIB= | INTERNALLIB= | ||||
WARNS?= 2 | WARNS?= 2 | ||||
SRCS= delay.c devpath.c efi_console.c efinet.c efipart.c env.c errno.c \ | SRCS= delay.c devpath.c efi_console.c efinet.c efipart.c env.c errno.c \ | ||||
handles.c wchar.c libefi.c | handles.c wchar.c libefi.c efizfs.c devicename.c | ||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | ||||
SRCS+= time.c | SRCS+= time.c | ||||
.elif ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" | .elif ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" | ||||
SRCS+= time_event.c | SRCS+= time_event.c | ||||
.endif | .endif | ||||
# We implement a slightly non-standard %S in that it always takes a | # We implement a slightly non-standard %S in that it always takes a | ||||
Show All 9 Lines | |||||
CFLAGS+= -mgeneral-regs-only | CFLAGS+= -mgeneral-regs-only | ||||
.endif | .endif | ||||
.if ${MACHINE_ARCH} == "amd64" | .if ${MACHINE_ARCH} == "amd64" | ||||
CFLAGS+= -fPIC -mno-red-zone | CFLAGS+= -fPIC -mno-red-zone | ||||
.endif | .endif | ||||
CFLAGS+= -I${.CURDIR}/../include | CFLAGS+= -I${.CURDIR}/../include | ||||
CFLAGS+= -I${.CURDIR}/../include/${MACHINE} | CFLAGS+= -I${.CURDIR}/../include/${MACHINE} | ||||
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand | CFLAGS+= -I${.CURDIR}/../../../../lib/libstand | ||||
.if ${MK_ZFS} != "no" | |||||
CFLAGS+= -I${.CURDIR}/../../zfs | |||||
CFLAGS+= -I${.CURDIR}/../../../cddl/boot/zfs | |||||
CFLAGS+= -I${.CURDIR}/../../../crypto/skein | |||||
CFLAGS+= -DEFI_ZFS_BOOT | |||||
.endif | |||||
# Pick up the bootstrap header for some interface items | # Pick up the bootstrap header for some interface items | ||||
CFLAGS+= -I${.CURDIR}/../../common | CFLAGS+= -I${.CURDIR}/../../common | ||||
# Handle FreeBSD specific %b and %D printf format specifiers | # Handle FreeBSD specific %b and %D printf format specifiers | ||||
CFLAGS+= ${FORMAT_EXTENSIONS} | CFLAGS+= ${FORMAT_EXTENSIONS} | ||||
# Do not use TERM_EMU on arm and arm64 as it doesn't behave well with serial console | # Do not use TERM_EMU on arm and arm64 as it doesn't behave well with serial console | ||||
.if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "aarch64" | .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "aarch64" | ||||
CFLAGS+= -DTERM_EMU | CFLAGS+= -DTERM_EMU | ||||
.endif | .endif | ||||
.include <bsd.lib.mk> | .include <bsd.lib.mk> |