public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Vincent Li <vincent.mc.li@gmail.com>
To: Michael Tremer <michael.tremer@ipfire.org>, development@lists.ipfire.org
Cc: Vincent Li <vincent.mc.li@gmail.com>
Subject: [PATCH v1 3/8] lfs/Config: Update config.guess and config.sub for loongarch64 support
Date: Tue,  4 Aug 2026 19:39:51 -0700	[thread overview]
Message-ID: <20260805023956.3379890-4-vincent.mc.li@gmail.com> (raw)
In-Reply-To: <20260805023956.3379890-1-vincent.mc.li@gmail.com>

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(-)

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} || \
-- 
2.38.1



  parent reply	other threads:[~2026-08-05  2:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-05  2:39 [PATCH v1 0/8] Add loongarch64 architecture support to IPFire Vincent Li
2026-08-05  2:39 ` [PATCH v1 1/8] make.sh: Add support for building on loongarch64 Vincent Li
2026-08-05  2:39 ` [PATCH v1 2/8] gcc: Add dynamic linker path for loongarch64 native toolchain build Vincent Li
2026-08-05  2:39 ` Vincent Li [this message]
2026-08-05  2:39 ` [PATCH v1 4/8] lfs/Config: Add EFI and GRUB architecture definitions for loongarch64 Vincent Li
2026-08-05  2:39 ` [PATCH v1 5/8] lfs/Config: Set GOARCH for loongarch64 builds Vincent Li
2026-08-05  2:39 ` [PATCH v1 6/8] installer: Enable EFI support for loongarch64 Vincent Li
2026-08-05  2:39 ` [PATCH v1 7/8] installer: Add bootloader installation " Vincent Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260805023956.3379890-4-vincent.mc.li@gmail.com \
    --to=vincent.mc.li@gmail.com \
    --cc=development@lists.ipfire.org \
    --cc=michael.tremer@ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox