summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/Makefile.inc
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-01-11 00:43:50 +0000
committeremaste <emaste@FreeBSD.org>2016-01-11 00:43:50 +0000
commit3066f138bc3bf99f5cf6ec9412903d206c329cc7 (patch)
tree35061f0a7c74838402d7b6896685dbded35304d5 /sys/boot/efi/Makefile.inc
parentd10ff89a31425b9a2c8478ba1f7a305136b260b1 (diff)
downloadFreeBSD-src-3066f138bc3bf99f5cf6ec9412903d206c329cc7.zip
FreeBSD-src-3066f138bc3bf99f5cf6ec9412903d206c329cc7.tar.gz
MFC r281027: Clean up more x86 only options in the efi code.
Diffstat (limited to 'sys/boot/efi/Makefile.inc')
-rw-r--r--sys/boot/efi/Makefile.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/boot/efi/Makefile.inc b/sys/boot/efi/Makefile.inc
index 58c4726..d9474dc 100644
--- a/sys/boot/efi/Makefile.inc
+++ b/sys/boot/efi/Makefile.inc
@@ -8,9 +8,14 @@ CFLAGS+= -march=i386
# Options used when building app-specific efi components
# See conf/kern.mk for the correct set of these
-CFLAGS+= -ffreestanding -fshort-wchar -Wformat
-CFLAGS+= -mno-red-zone
-CFLAGS+= -mno-mmx -mno-sse -mno-aes -mno-avx -msoft-float
+CFLAGS+= -ffreestanding -Wformat -msoft-float
LDFLAGS+= -nostdlib
+.if ${MACHINE_CPUARCH} == "amd64"
+CFLAGS+= -fshort-wchar
+CFLAGS+= -mno-red-zone
+CFLAGS+= -mno-mmx -mno-sse -mno-aes -mno-avx
+.endif
+
+
.include "../Makefile.inc"
OpenPOWER on IntegriCloud