xref: /freebsd/stand/efi/Makefile.inc (revision 3f0efe05432b1633991114ca4ca330102a561959)
1# Options used when building app-specific efi components
2# See conf/kern.mk for the correct set of these
3CFLAGS+=	-Wformat
4LDFLAGS+=	-nostdlib
5
6.if ${MACHINE_CPUARCH} == "amd64"
7CFLAGS+=	-fshort-wchar
8CFLAGS+=	-mno-red-zone
9.endif
10
11.if ${MACHINE_CPUARCH} == "aarch64"
12CFLAGS+=	-fshort-wchar
13CFLAGS+=	-fPIC
14.endif
15
16.if ${MACHINE_CPUARCH} == "arm"
17CFLAGS+=	-fPIC
18.endif
19
20.if ${MACHINE_CPUARCH} == "amd64"
21EFI_TARGET=	efi-app-x86_64
22.else
23EFI_TARGET=	binary
24.endif
25
26# Arbitrarily set the PE/COFF header timestamps to 1 Jan 2024 00:00:00
27# for build reproducibility.
28SOURCE_DATE_EPOCH?=1704067200
29
30.include "../Makefile.inc"
31