[v1,5/8] lfs/Config: Set GOARCH for loongarch64 builds

Message ID 20260805023956.3379890-6-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
Define GOARCH=loong64 for loongarch64 architecture builds to enable
proper Go language compilation support. The Go programming language
uses "loong64" as the architecture identifier for LoongArch 64-bit
systems.

This allows any Go packages in the build system to compile correctly
for the loongarch64 target by providing the correct GOARCH value during
the build process.

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
---
 lfs/Config | 4 ++++
 1 file changed, 4 insertions(+)
  

Patch

diff --git a/lfs/Config b/lfs/Config
index 06ba065ea..fea0fcbbd 100644
--- a/lfs/Config
+++ b/lfs/Config
@@ -157,6 +157,10 @@  ifeq "$(BUILD_ARCH)" "aarch64"
 	GOARCH = arm64
 endif
 
+ifeq "$(BUILD_ARCH)" "loongarch64"
+	GOARCH = loong64
+endif
+
 # Rust
 ifeq "$(BUILD_ARCH)" "riscv64"
 	RUST_ARCH = riscv64gc