]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/boot/efi/Makefile.inc
MFC Loader Fixes 2017q2: r316437,r316577,r316578,r316585,r316590,r316612,
[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 ${CFLAGS_NO_SIMD}
13 LDFLAGS+=       -nostdlib
14
15 .if ${MACHINE_CPUARCH} != "aarch64"
16 CFLAGS+=        -msoft-float
17 .endif
18
19 .if ${MACHINE_CPUARCH} == "amd64"
20 CFLAGS+=        -fshort-wchar
21 CFLAGS+=        -mno-red-zone
22 CFLAGS+=        -mno-aes
23 .endif
24
25 .if ${MACHINE_CPUARCH} == "aarch64"
26 CFLAGS+=        -fshort-wchar
27 CFLAGS+=        -fPIC
28 .endif
29
30 .if ${MACHINE_CPUARCH} == "arm"
31 CFLAGS+=        -fPIC
32 .endif
33
34 .include "../Makefile.inc"