public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sun Haiyong <sunhaiyong@zdbr.net>
To: git-commits@fedoraproject.org
Subject: [rpms/efi-rpm-macros] rawhide: Add loongarch64 support.
Date: Mon, 03 Aug 2026 09:54:41 GMT [thread overview]
Message-ID: <178575088123.1.12931752289054900338.rpms-efi-rpm-macros-529203ca5a2c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/efi-rpm-macros
Branch : rawhide
Commit : 529203ca5a2cdf43227171ed34f8ce6b949deb90
Author : Sun Haiyong <sunhaiyong@zdbr.net>
Date : 2026-07-24T10:55:06+08:00
Stats : +61/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/efi-rpm-macros/c/529203ca5a2cdf43227171ed34f8ce6b949deb90?branch=rawhide
Log:
Add loongarch64 support.
---
diff --git a/0001-Add-loongarch64-support.patch b/0001-Add-loongarch64-support.patch
new file mode 100644
index 0000000..329b57c
--- /dev/null
+++ b/0001-Add-loongarch64-support.patch
@@ -0,0 +1,53 @@
+From f1283ba7e4e35634705fd34898ee2391a67d9064 Mon Sep 17 00:00:00 2001
+From: Sun Haiyong <sunhaiyong@zdbr.net>
+Date: Wed, 1 Jul 2026 16:05:24 +0800
+Subject: [PATCH] Add loongarch64 support.
+
+---
+ Makefile | 2 +-
+ efi-rpm-macros.spec.in | 2 +-
+ macros.efi-srpm.in | 2 ++
+ 3 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 725cc86..e11ae04 100644
+--- a/Makefile
++++ b/Makefile
+@@ -14,7 +14,7 @@ override EFI_ESP_ROOT=/boot/efi
+ endif
+ EFI_ARCHES ?= $(call get-config,arches)
+ ifeq ($(EFI_ARCHES),)
+-override EFI_ARCHES="x86_64 aarch64 %{arm} %{ix86} riscv64"
++override EFI_ARCHES="x86_64 aarch64 %{arm} %{ix86} riscv64 loongarch64"
+ endif
+ EFI_VENDOR ?= $(call get-config,vendor)
+
+diff --git a/efi-rpm-macros.spec.in b/efi-rpm-macros.spec.in
+index 7f56e87..015d3e0 100644
+--- a/efi-rpm-macros.spec.in
++++ b/efi-rpm-macros.spec.in
+@@ -36,7 +36,7 @@ machine bootloaders and tools.
+ %autosetup -S git_am -n %{name}-@@EFI_SOURCE_VERSION@@
+ git config --local --add efi.vendor "%{_efi_vendor_}"
+ git config --local --add efi.esp-root /boot/efi
+-git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86} riscv64"
++git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86} riscv64 loongarch64"
+
+ %build
+ %make_build clean all
+diff --git a/macros.efi-srpm.in b/macros.efi-srpm.in
+index e78c0f0..7c9c8db 100644
+--- a/macros.efi-srpm.in
++++ b/macros.efi-srpm.in
+@@ -39,6 +39,8 @@
+ return("arm")
+ elseif arch("riscv64") then
+ return("riscv64")
++ elseif arch("loongarch64") then
++ return("loongarch64")
+ else
+ return("none")
+ end
+--
+2.48.1
+
diff --git a/efi-rpm-macros.spec b/efi-rpm-macros.spec
index f7fd68b..20f8eb7 100644
--- a/efi-rpm-macros.spec
+++ b/efi-rpm-macros.spec
@@ -1,7 +1,7 @@
Summary: Common RPM Macros for building EFI-related packages
Name: efi-rpm-macros
Version: 6
-Release: 8%{?dist}
+Release: 9%{?dist}
License: GPL-3.0-or-later
URL: https://github.com/rhboot/%{name}/
BuildRequires: git sed
@@ -13,6 +13,9 @@ Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-
# https://github.com/rhboot/efi-rpm-macros/pull/3
Patch0001: 0001-add-riscv64-support.patch
Patch0002: 0002-Re-enable-ia32-as-an-alt-for-x86_64.patch
+# Not upstream, but submitted as a PR upstream like riscv.
+# https://github.com/rhboot/efi-rpm-macros/pull/5
+Patch0003: 0001-Add-loongarch64-support.patch
%global debug_package %{nil}
%global _efi_vendor_ %(eval echo $(sed -n -e 's/rhel/redhat/' -e 's/eln/fedora/' -e 's/^ID=//p' /etc/os-release))
@@ -41,7 +44,7 @@ machine bootloaders and tools.
%autosetup -S git_am -n %{name}-6
git config --local --add efi.vendor "%{_efi_vendor_}"
git config --local --add efi.esp-root /boot/efi
-git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86} riscv64"
+git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86} riscv64 loongarch64"
%build
%make_build clean all
@@ -70,6 +73,9 @@ git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86} riscv64"
%dir /boot/efi/EFI/%{_efi_vendor_}
%changelog
+* Wed Jul 1 2026 Sun Haiyong <sunhaiyong@zdbr.net> - 6-9
+- Add loongarch64 support.
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
reply other threads:[~2026-08-03 9:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=178575088123.1.12931752289054900338.rpms-efi-rpm-macros-529203ca5a2c@fedoraproject.org \
--to=sunhaiyong@zdbr.net \
--cc=git-commits@fedoraproject.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