]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/boot/efi/Makefile.inc
Add kernel interfaces to call EFI Runtime Services.
[FreeBSD/FreeBSD.git] / sys / boot / efi / Makefile.inc
1 # $FreeBSD$
2
3 BINDIR?=        /boot
4
5 .if ${MACHINE_CPUARCH} == "i386"
6 CFLAGS+=        -march=i386
7 CFLAGS+=        -mno-aes
8 .endif
9
10 # Options used when building app-specific efi components
11 # See conf/kern.mk for the correct set of these
12 CFLAGS+=        -ffreestanding -Wformat -msoft-float ${CFLAGS_NO_SIMD}
13 LDFLAGS+=       -nostdlib
14
15 .if ${MACHINE_CPUARCH} == "amd64"
16 CFLAGS+=        -fshort-wchar
17 CFLAGS+=        -mno-red-zone
18 CFLAGS+=        -mno-aes
19 .endif
20
21 .if ${MACHINE_CPUARCH} == "aarch64"
22 CFLAGS+=        -fshort-wchar
23 .endif
24
25 .include "../Makefile.inc"