From 32ef61b88864e0de2edd8dbadfc315ee4c353324 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sat, 11 Apr 2015 10:23:22 +0200 Subject: 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. --- Makefile.am | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 1ff74bbdcd..f30fe296aa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ -- cgit v1.2.3-54-g00ecf