[v1,1/8] make.sh: Add support for building on loongarch64

Message ID 20260805023956.3379890-2-vincent.mc.li@gmail.com
State New
Headers
Series Add loongarch64 architecture support to IPFire |

Commit Message

Vincent Li 5 Aug 2026, 2:39 a.m. UTC
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
---
 make.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
  

Patch

diff --git a/make.sh b/make.sh
index 37f01c1a2..fd8b777a3 100755
--- a/make.sh
+++ b/make.sh
@@ -49,6 +49,7 @@  KVER="${KVER/-rc/.0-rc}${KVER_SUFFIX}"
 # All supported architectures
 ARCHES=(
 	aarch64
+	loongarch64
 	riscv64
 	x86_64
 )
@@ -2415,7 +2416,7 @@  done
 
 # Check the architecture
 case "${BUILD_ARCH}" in
-	aarch64|x86_64|riscv64)
+	aarch64|x86_64|riscv64|loongarch64)
 		;;
 
 	*)
@@ -2429,6 +2430,10 @@  case "${BUILD_ARCH}" in
 		BUILD_PLATFORM="arm"
 		;;
 
+	loongarch64)
+		BUILD_PLATFORM="loongarch"
+		;;
+
 	riscv64)
 		BUILD_PLATFORM="riscv"
 		;;