aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/Makefile.inc
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-07-20 05:18:03 +0000
committerWarner Losh <imp@FreeBSD.org>2018-07-20 05:18:03 +0000
commit1f9bd5f67c011e55ac64b22ae4dbeee716ae376c (patch)
treeb8c3ddce8e4e9ace64b9227ce91c3ea84111befd /stand/efi/Makefile.inc
parentfdcfd483e3c0e3f0c155840bdf056785a12cbdb7 (diff)
downloadsrc-1f9bd5f67c011e55ac64b22ae4dbeee716ae376c.tar.gz
src-1f9bd5f67c011e55ac64b22ae4dbeee716ae376c.zip
Hoist EFI_TARGET and SOURCE_DATE_EPOCH up into efi/Makefile.inc
Notes
Notes: svn path=/head/; revision=336535
Diffstat (limited to 'stand/efi/Makefile.inc')
-rw-r--r--stand/efi/Makefile.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/stand/efi/Makefile.inc b/stand/efi/Makefile.inc
index 704a77c6c397..c2d803ddc1ab 100644
--- a/stand/efi/Makefile.inc
+++ b/stand/efi/Makefile.inc
@@ -19,4 +19,16 @@ CFLAGS+= -fPIC
CFLAGS+= -fPIC
.endif
+.if ${MACHINE_CPUARCH} == "amd64"
+EFI_TARGET= efi-app-x86_64
+.elif ${MACHINE_CPUARCH} == "i386"
+EFI_TARGET= efi-app-ia32
+.else
+EFI_TARGET= binary
+.endif
+
+# Arbitrarily set the PE/COFF header timestamps to 1 Jan 2016 00:00:00
+# for build reproducibility.
+SOURCE_DATE_EPOCH?=1451606400
+
.include "../Makefile.inc"