]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/efi/Makefile.inc
Implement pci_enable_msi() and pci_disable_msi() in the LinuxKPI.
[FreeBSD/FreeBSD.git] / stand / efi / Makefile.inc
1 # $FreeBSD$
2
3 # Options used when building app-specific efi components
4 # See conf/kern.mk for the correct set of these
5 CFLAGS+=        -Wformat
6 LDFLAGS+=       -nostdlib
7
8 .if ${MACHINE_CPUARCH} == "amd64"
9 CFLAGS+=        -fshort-wchar
10 CFLAGS+=        -mno-red-zone
11 .endif
12
13 .if ${MACHINE_CPUARCH} == "aarch64"
14 CFLAGS+=        -fshort-wchar
15 CFLAGS+=        -fPIC
16 .endif
17
18 .if ${MACHINE_CPUARCH} == "arm"
19 CFLAGS+=        -fPIC
20 .endif
21
22 .if ${MACHINE_CPUARCH} == "amd64"
23 EFI_TARGET=     efi-app-x86_64
24 .elif ${MACHINE_CPUARCH} == "i386"
25 EFI_TARGET=     efi-app-ia32
26 .else
27 EFI_TARGET=     binary
28 .endif
29
30 # Arbitrarily set the PE/COFF header timestamps to 1 Jan 2016 00:00:00
31 # for build reproducibility.
32 SOURCE_DATE_EPOCH?=1451606400
33
34 .include "../Makefile.inc"