[v1,3/8] lfs/Config: Update config.guess and config.sub for loongarch64 support

Message ID 20260805023956.3379890-4-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
Some software packages contain outdated config.guess and config.sub
scripts that do not recognize loongarch64 as a valid architecture.
This causes build failures when configuring packages that use these
scripts to detect the target platform.

Extend the UPDATE_AUTOMAKE macro to also apply to loongarch64 builds,
ensuring that config.guess and config.sub are updated from the system
automake installation for all packages.

This brings loongarch64 in line with the existing behavior for aarch64
and riscv64 architectures, where these scripts are already updated to
support those newer architectures.

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

Patch

diff --git a/lfs/Config b/lfs/Config
index 5abcd0715..2334d5f0a 100644
--- a/lfs/Config
+++ b/lfs/Config
@@ -476,7 +476,7 @@  define INSTALL_INITSCRIPTS
     done
 endef
 
-ifeq "$(BUILD_ARCH)" "$(filter $(BUILD_ARCH),aarch64 riscv64)"
+ifeq "$(BUILD_ARCH)" "$(filter $(BUILD_ARCH),aarch64 riscv64 loongarch64)"
 define UPDATE_AUTOMAKE
 	for i in $$(find $(DIR_APP) -name config.guess -o -name config.sub); do \
 		cp -vf /usr/share/automake*/$$(basename $${i}) $${i} || \