[v1,0/8] Add loongarch64 architecture support to IPFire

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

Message

Vincent Li 5 Aug 2026, 2:39 a.m. UTC
This patch series adds initial support for the LoongArch64 architecture
to the IPFire build system and installer. LoongArch64 is the 64-bit
RISC architecture developed by Loongson Technology, using UEFI as its
standard firmware interface.

The series includes:

1. **Build system detection** (make.sh): Add architecture detection
   for loongarch64 in the main build script.

2. **Toolchain fixes** (gcc): Fix dynamic linker path for native
   bootstrap to ensure glibc builds correctly.

3. **Package build system** (lfs/Config): Update config.guess/sub
   scripts to recognize loongarch64 as a valid architecture.

4. **EFI and GRUB support** (lfs/Config): Define architecture
   variables for building EFI firmware and GRUB for loongarch64.

5. **Go language support** (lfs/Config): Set GOARCH=loong64 for
   building Go packages.

6. **Installer EFI detection** (installer): Enable EFI boot mode
   detection for loongarch64 systems.

7. **Installer bootloader** (installer): Add GRUB installation
   support for loongarch64-efi.

8. **Kernel build** (kernel): Add architecture definitions and
   special handling for building the Linux kernel on loongarch64.

These changes are the foundation for a complete loongarch64 port
of IPFire and have been tested on a LoongArch64 development system.

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
---
  make.sh: Add support for building on loongarch64
  gcc: Add dynamic linker path for loongarch64 native toolchain build
  lfs/Config: Update config.guess and config.sub for loongarch64 support
  lfs/Config: Add EFI and GRUB architecture definitions for loongarch64
  lfs/Config: Set GOARCH for loongarch64 builds
  installer: Enable EFI support for loongarch64
  installer: Add bootloader installation support for loongarch64
  kernel: Add build support for loongarch64

 .../kernel/kernel.config.loongarch64-ipfire   |  7814 +++++
 config/rootfiles/common/loongarch64/linux     | 23754 ++++++++++++++++
 lfs/Config                                    |    14 +-
 lfs/gcc                                       |     4 +
 lfs/linux                                     |    10 +
 make.sh                                       |     7 +-
 src/installer/hw.c                            |     3 +-
 src/installer/install-bootloader              |     3 +
 8 files changed, 31605 insertions(+), 4 deletions(-)
 create mode 100644 config/kernel/kernel.config.loongarch64-ipfire
 create mode 100644 config/rootfiles/common/loongarch64/linux