build: support non-x86 EFI builds

Move the no-mmx/no-sse CFLAGS to X86-64 and IA32 defines in preparation
for ARM32 and Aarch64 support.
This commit is contained in:
Koen Kooi 2015-04-11 10:23:22 +02:00 committed by David Herrmann
parent 3ebc2dc498
commit 32ef61b888

View file

@ -2564,17 +2564,23 @@ efi_cflags = \
-fno-strict-aliasing \
-fno-stack-protector \
-Wsign-compare \
-Wno-missing-field-initializers \
-mno-sse \
-mno-mmx
-Wno-missing-field-initializers
if ARCH_X86_64
efi_cflags += \
-mno-red-zone \
-mno-sse \
-mno-mmx \
-DEFI_FUNCTION_WRAPPER \
-DGNU_EFI_USE_MS_ABI
endif
if ARCH_IA32
efi_cflags += \
-mno-sse \
-mno-mmx
endif
efi_ldflags = \
$(EFI_LDFLAGS) \
-T $(EFI_LDS_DIR)/elf_$(EFI_ARCH)_efi.lds \