Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/efi/Makefile.inc
# $FreeBSD$ | # $FreeBSD$ | ||||
BINDIR?= /boot | BINDIR?= /boot | ||||
.if ${MACHINE_CPUARCH} == "i386" | .if ${MACHINE_CPUARCH} == "i386" | ||||
CFLAGS+= -march=i386 | CFLAGS+= -march=i386 | ||||
CFLAGS+= -mno-aes | |||||
.endif | .endif | ||||
# Options used when building app-specific efi components | # Options used when building app-specific efi components | ||||
# See conf/kern.mk for the correct set of these | # See conf/kern.mk for the correct set of these | ||||
CFLAGS+= -ffreestanding -Wformat -msoft-float | CFLAGS+= -ffreestanding -Wformat -msoft-float ${CFLAGS_NO_SIMD} | ||||
LDFLAGS+= -nostdlib | LDFLAGS+= -nostdlib | ||||
.if ${MACHINE_CPUARCH} == "amd64" | .if ${MACHINE_CPUARCH} == "amd64" | ||||
CFLAGS+= -fshort-wchar | CFLAGS+= -fshort-wchar | ||||
CFLAGS+= -mno-red-zone | CFLAGS+= -mno-red-zone | ||||
CFLAGS+= -mno-mmx -mno-sse | CFLAGS+= -mno-aes | ||||
CFLAGS.clang+= -mno-aes -mno-avx | |||||
.endif | .endif | ||||
.include "../Makefile.inc" | .include "../Makefile.inc" |