| Message ID | 20260805023956.3379890-5-vincent.mc.li@gmail.com |
|---|---|
| State | New |
| Headers |
Return-Path: <development+bounces-2474-patchwork=ipfire.org@lists.ipfire.org>
Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519)
(Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified))
by web04.haj.ipfire.org (Postfix) with ESMTPS id 4hFF8q2Cx0z3wkS
for <patchwork@web04.haj.ipfire.org>; Wed, 05 Aug 2026 02:43:39 +0000 (UTC)
Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519)
(Client CN "mail02.haj.ipfire.org", Issuer "YE1" (not verified))
by mail01.ipfire.org (Postfix) with ESMTPS id 4hFF8g0vnjz5YM
for <patchwork@ipfire.org>; Wed, 05 Aug 2026 02:43:31 +0000 (UTC)
Received: from mail02.haj.ipfire.org (localhost [IPv6:::1])
by mail02.haj.ipfire.org (Postfix) with ESMTP id 4hFF5P0Ggvz37Dn
for <patchwork@ipfire.org>; Wed, 05 Aug 2026 02:40:41 +0000 (UTC)
X-Original-To: development@lists.ipfire.org
Received: from mail01.ipfire.org (mail01.haj.ipfire.org
[IPv6:2001:678:b28::25])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519)
(Client CN "mail01.haj.ipfire.org", Issuer "YR2" (not verified))
by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4hFF5L3C7Vz30NH
for <development@lists.ipfire.org>; Wed, 05 Aug 2026 02:40:38 +0000 (UTC)
Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com
[IPv6:2607:f8b0:4864:20::62a])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest
SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "smtp.gmail.com", Issuer "WR4" (verified OK))
by mail01.ipfire.org (Postfix) with ESMTPS id 4hFF5B2MnDzvw
for <development@lists.ipfire.org>; Wed, 05 Aug 2026 02:40:30 +0000 (UTC)
Authentication-Results: mail01.ipfire.org;
dkim=pass header.d=gmail.com header.s=20251104 header.b=aRCC5QAb;
spf=pass (mail01.ipfire.org: domain of vincent.mc.li@gmail.com designates
2607:f8b0:4864:20::62a as permitted sender)
smtp.mailfrom=vincent.mc.li@gmail.com;
dmarc=pass (policy=none) header.from=gmail.com
ARC-Seal: i=1; a=rsa-sha256; d=lists.ipfire.org; s=202003rsa; cv=none;
t=1785897630;
b=iiUz20/wKoDydSMa80w+NLF/s8SVTEfh0GJLxOVh6V43grN4kjBjusnJdMBnlEFTngLVte
GwJM3LyKvEn90LQoP6sgsd1T+D7GsrEKyaBRMy9xOgAdK9zFzkmSs3lOxVJr/VP/Mpr6zR
Z5aiQKXBXIq0bMhj+/BGpRXm+8tfHBiekhlL47toX4bZ+XcwTurFVfys5axtWXch8WZLeR
JSkSEidTAnZeG8gFAEwhxAr5WI34A/zgRGIV5OQhbwSudA9DgJW8sJB5JB2GFtb85TnhBf
YUPIdsPCS30KkDrOROS8blfDXijwrASSI07zn7E/CFQiiD3uAGyijtpiuS3EWg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=lists.ipfire.org;
s=202003rsa; t=1785897630;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references:dkim-signature;
bh=Pg+FX+mCObJkPa+lMCVbskYqfTayXyPumUecF8MlJuw=;
b=Zph/hwybc0qNgRVEVFMXqZGPrymbdH4qhK5pmIX/yELQJWMiPMXQ/VHXCeEyTVEa8W130J
TNTam/gw81VC7UDBzn1QcrkpFFtTF3NHSmS8sC1vH3b38rJNNThy8P00V0FiKxLIqVAXpZ
z63jRlYhdsvAsGRz2f34IVM5ewzqCIQJPT6W9VuU/4jF4JEjHWyL1S8BapSN6R6BK7uNXs
8M/gPLti3W6LT2RE/tYLYHU44/LEIwyMv7nblntp5EYgwIxuQeJUX3t/Givw6LQ5hPetKk
Q4+7R1WMzkW3wNgbu9RtVSggKjWWF14GmYuXZVK7BF2NFMPTPTaA/+SpB/iBpQ==
ARC-Authentication-Results: i=1;
mail01.ipfire.org;
dkim=pass header.d=gmail.com header.s=20251104 header.b=aRCC5QAb;
spf=pass (mail01.ipfire.org: domain of vincent.mc.li@gmail.com designates
2607:f8b0:4864:20::62a as permitted sender)
smtp.mailfrom=vincent.mc.li@gmail.com;
dmarc=pass (policy=none) header.from=gmail.com
Received: by mail-pl1-x62a.google.com with SMTP id
d9443c01a7336-2caed617615so6958335ad.3
for <development@lists.ipfire.org>;
Tue, 04 Aug 2026 19:40:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1785897628; x=1786502428;
darn=lists.ipfire.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=Pg+FX+mCObJkPa+lMCVbskYqfTayXyPumUecF8MlJuw=;
b=aRCC5QAbmVHZIaKz+vLKePRPS58QXKatRPXV1fCtpmxt1tRSBBMkJrQLme61BL9CfS
JhlMIyaLV357thCp0ZMBd6mnvGTCHRgKvgcP6pPTbI2o3MT4F/IvokBmU4sfioQzdNGt
nTwNHI+FdLHUEh5GJxix7ze7eB/iZsqrvTQUK9IHF2ZGZMDcEp3a9MBG56Jy535xcDkB
PFcNrAs0UEtTJJQYiRyEbYG7j9VG4JSZOdN6YjmSnI/6xxWjRAWmKw5CPzWeSE4a1K8J
ET5u17sw2Y75RioYnHmeEiFAqEsF/+Aw6d6joK+zuP+xLHionPvyIRhorb09H4Ua3BUc
lhzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20251104; t=1785897628; x=1786502428;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=Pg+FX+mCObJkPa+lMCVbskYqfTayXyPumUecF8MlJuw=;
b=JQkh6kOOLz/XPJCPA53m14vMxQpBBdZd+A1ZrAjcgKtjMOD+RkBFR9gXvYMvLBzcV8
QWBlErcg8cqTKlc0qy4/G0QUB5Wrtk652YBWrRHIG92AI5RynCojo9DqCptXYEi++h6s
NIziTirLVZS8fnnQfp9wl1HYE4Pz7gq9aZSdM42qO8QBcUsEOCzB/ZfYSknXojWxtuoT
95IBzKzh4+EsXgnas3MfqYcjdnNwH7DpN0xWlEHu3VbuCGUf/FdvwvuCUKASs3WtG8Hs
wDcZhWEqj8Bu0d2aorALp9Ws5A8yJxt4/Q4yVlPWf6uAyDW3NaNhMSmgeuTLMWmG29XX
qyzg==
X-Forwarded-Encrypted: i=1;
AHgh+RqIYMyIZnC+eM7sqYGz/g8LAbkIgOg1itKYZPJc4+K5uqHcwMakrWYmvimalncBSah/TsMoq2/1yowR6w==@lists.ipfire.org
X-Gm-Message-State: AOJu0Yx2rwRTDNP/bDX3GKm8QQ7p5tDbxl8I6u35eocVWHrrT39W3TjY
0X8AiDIddfqc4aocd/SNs8tCg0na66ycf+qSwqVpyEMsbrJs0xxE0NvwYuDV9cknehE=
X-Gm-Gg: AR+sD12j6+BpheXO5gn6Xf8Lt1LMC7En/DHkpNRvdrSsXEhmMyn9I+fxf+qoeWoGQIB
cgXedvfWAhX1nEQ4jA9MNLAtVr6Z2maqMRvpBN0gc4JswosscLBvICcIhOcJWhxK7zUHZZ/DLd5
53EAG1IHnFbFBREKGZEG2nwnmffl2JtrY2KgffOAQ9i/r5+MhyBXtBNGxZFdLlsWeWL4rcsT7w0
Ckt+RDbJigufQ+nCjlgvOhqhrB7TneucxYlwprfdDF5EuaT8G6TvJ12qWIvQ7SvD/Q3wbjwshEw
7MkMVhkCM3wbVk7ea4d/3/kBPru8aEyULfd7C1xPNCiEZe1wy0ttJs5dHi1anU5sO2zI7oyJeuG
URzHG5vFUEYsrJpoWBJ3d/Yt84EtWiEozzLpNTBsxkGdXUHfrzAX6JLb6+zZuKXfzEuq4R6Rpm0
E1Sn6oXJ2exPmuSGI9Ptzu5Wz30+iThXhYwn1/05wCtNe81lTb1GtErH5SkW0Kb26NDepr
X-Received: by 2002:a05:6a21:1f89:b0:3ba:f5c7:6bc3 with SMTP id
adf61e73a8af0-3cb85e9924emr3765176637.10.1785897628531;
Tue, 04 Aug 2026 19:40:28 -0700 (PDT)
Received: from sc.10086.cn ([2409:8a62:4216:8470:43c3:3b45:83f6:fb4a])
by smtp.gmail.com with ESMTPSA id
41be03b00d2f7-cbe708be5bdsm476544a12.15.2026.08.04.19.40.26
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 04 Aug 2026 19:40:28 -0700 (PDT)
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 4/8] lfs/Config: Add EFI and GRUB architecture definitions
for loongarch64
Date: Tue, 4 Aug 2026 19:39:52 -0700
Message-Id: <20260805023956.3379890-5-vincent.mc.li@gmail.com>
X-Mailer: git-send-email 2.38.1
In-Reply-To: <20260805023956.3379890-1-vincent.mc.li@gmail.com>
References: <20260805023956.3379890-1-vincent.mc.li@gmail.com>
Precedence: list
List-Id: <development.lists.ipfire.org>
List-Subscribe: <https://lists.ipfire.org/>,
<mailto:development+subscribe@lists.ipfire.org?subject=subscribe>
List-Unsubscribe: <https://lists.ipfire.org/>,
<mailto:development+unsubscribe@lists.ipfire.org?subject=unsubscribe>
List-Post: <mailto:development@lists.ipfire.org>
List-Help: <mailto:development+help@lists.ipfire.org?subject=help>
Sender: <development@lists.ipfire.org>
Mail-Followup-To: <development@lists.ipfire.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Rspamd-Queue-Id: 4hFF5B2MnDzvw
X-Rspamd-Action: no action
X-Spamd-Result: default: False [-6.59 / 11.00];
BAYES_HAM(-3.00)[100.00%];
R_DKIM_ALLOW(-1.69)[gmail.com:s=20251104];
DKIM_REPUTATION(-0.96)[-0.95924909370809];
SPF_REPUTATION_HAM(-0.54)[-0.54284816225387];
R_MISSING_CHARSET(0.50)[];
DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4864::/56:c];
MIME_GOOD(-0.10)[text/plain];
MX_GOOD(-0.10)[gmail-smtp-in.l.google.com];
RCVD_TLS_LAST(0.00)[];
IP_REPUTATION_HAM(0.00)[asn: 15169(-0.30), country: US(-0.01),
ip: 2607:f8b0:4864:20::(-0.77)];
ARC_NA(0.00)[];
FROM_EQ_ENVFROM(0.00)[];
MIME_TRACE(0.00)[0:+];
FREEMAIL_FROM(0.00)[gmail.com];
TO_DN_SOME(0.00)[];
DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
FREEMAIL_ENVFROM(0.00)[gmail.com];
PREVIOUSLY_DELIVERED(0.00)[development@lists.ipfire.org];
RCVD_COUNT_TWO(0.00)[2];
FREEMAIL_CC(0.00)[gmail.com];
RCVD_VIA_SMTP_AUTH(0.00)[];
MID_RHS_MATCH_FROM(0.00)[];
ALIAS_RESOLVED(0.00)[];
TO_MATCH_ENVRCPT_SOME(0.00)[];
ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US];
RCPT_COUNT_THREE(0.00)[3];
ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1];
RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::62a:from];
DKIM_TRACE(0.00)[gmail.com:+];
FROM_HAS_DN(0.00)[]
X-Rspamd-Server: mail01.haj.ipfire.org
|
| Series |
Add loongarch64 architecture support to IPFire
|
|
Commit Message
Vincent Li
5 Aug 2026, 2:39 a.m. UTC
Add support for building EFI bootable images on loongarch64 by defining
the appropriate architecture variables. This enables the build system
to correctly locate and build the EFI firmware, GRUB bootloader, and
associated boot components for the LoongArch64 architecture.
- Set EFI=1 to enable EFI support
- Set EFI_ARCH=LOONGARCH64 for EFI firmware selection
- Set GRUB_ARCH=loongarch64 to build the correct GRUB target
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
---
lfs/Config | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lfs/Config b/lfs/Config index 2334d5f0a..06ba065ea 100644 --- a/lfs/Config +++ b/lfs/Config @@ -111,7 +111,7 @@ DIR_TMP_PAK = $(DIR_TMP)/package-$(PROG) # Add the compiler location and version and specs to the ccache hash CCACHE_COMPILERCHECK += $(shell gcc -dumpspecs 2>/dev/null | md5sum | cut -d ' ' -f1) -# We support EFI on x86_64 riscv64 and aarch64 +# We support EFI on x86_64 riscv64 aarch64 and loongarch64 ifeq "$(BUILD_ARCH)" "x86_64" EFI = 1 EFI_ARCH = x64 @@ -130,6 +130,12 @@ ifeq "$(BUILD_ARCH)" "aarch64" GRUB_ARCH = arm64 endif +ifeq "$(BUILD_ARCH)" "loongarch64" + EFI = 1 + EFI_ARCH = LOONGARCH64 + GRUB_ARCH = $(BUILD_ARCH) +endif + CMAKE = cmake # In the toolchain, we might be cross-compiling and need cmake to know