]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build: support non-x86 EFI builds
authorKoen Kooi <koen.kooi@linaro.org>
Sat, 11 Apr 2015 08:23:22 +0000 (10:23 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 11 Apr 2015 09:39:29 +0000 (11:39 +0200)
Move the no-mmx/no-sse CFLAGS to X86-64 and IA32 defines in preparation
for ARM32 and Aarch64 support.

Makefile.am

index 1ff74bbdcd059f0d485d01f708e0d6654205251b..f30fe296aaeaf3e54b622e4ffccc15cb50b9c287 100644 (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 \