:: commit 7642297e18d43bd948366d58a57b608c280b4dff

Mintsuki <mintsuki@protonmail.com> — 2025-07-26 13:41

parents: d8b8cb6f1b

build: Add extra ABI/architecture-related flags for aarch64 and loongarch64

diff --git a/common/common.mk b/common/common.mk
index c932f8d3..788a3acc 100644
--- a/common/common.mk
+++ b/common/common.mk
@@ -132,6 +132,8 @@ ifeq ($(TARGET),uefi-aarch64)
     override CFLAGS_FOR_TARGET += \
         -fPIE \
         -fshort-wchar \
+        -mcpu=generic \
+        -march=armv8-a+nofp+nosimd \
         -mgeneral-regs-only
     override CPPFLAGS_FOR_TARGET := \
         -I ../nyu-efi/inc \
@@ -165,7 +167,10 @@ ifeq ($(TARGET),uefi-loongarch64)
         -fPIE \
         -fshort-wchar \
         -march=loongarch64 \
-        -mabi=lp64s
+        -mabi=lp64s \
+        -mfpu=none \
+        -msimd=none \
+        -mno-relax
 
     override CPPFLAGS_FOR_TARGET := \
         -I ../nyu-efi/inc \
tab: 248 wrap: offon