public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/memtest86+] rawhide: Add loongarch64 support.
@ 2026-07-02  7:42 Sun Haiyong
  0 siblings, 0 replies; only message in thread
From: Sun Haiyong @ 2026-07-02  7:42 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/memtest86+
            Branch : rawhide
            Commit : c327d6de96b2f6c108627162abbf3c95e4e5f92b
            Author : Sun Haiyong <sunhaiyong@zdbr.net>
            Date   : 2026-07-02T10:41:22+08:00
            Stats  : +7/-5 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/memtest86+/c/c327d6de96b2f6c108627162abbf3c95e4e5f92b?branch=rawhide

            Log:
            Add loongarch64 support.

Upstream memtest86+ supports loongarch64, add corresponding steps.

---
diff --git a/memtest86+.spec b/memtest86+.spec
index 0fedba1..abd7f0d 100644
--- a/memtest86+.spec
+++ b/memtest86+.spec
@@ -3,12 +3,15 @@
 # Turn off debuginfo package
 %global debug_package %{nil}
 %global common_description %{expand:
-Memtest86+ is a thorough stand-alone memory test for x86 and x86-64
+Memtest86+ is a thorough stand-alone memory test for x86, x86-64 and loongarch64
 architecture computers. BIOS based memory tests are only a quick
 check and often miss many of the failures that are detected by
 Memtest86+.
 }
 %global mt_isa x64
+%ifarch loongarch64
+%global mt_isa la64
+%endif
 
 Name:          memtest86+
 Version:       8.10
@@ -21,7 +24,7 @@ Source1:       memtest86+.kernel-install-plugin
 
 BuildRequires: gcc, make, xorriso, dosfstools, mtools
 Requires(pre): systemd-udev >= 252
-ExclusiveArch: x86_64
+ExclusiveArch: x86_64 loongarch64
 
 %description
 %wordwrap -v common_description
@@ -32,8 +35,7 @@ ExclusiveArch: x86_64
 
 
 %build
-# only x86_64 now supported in fedora
-pushd build/x86_64
+pushd build/%{_arch}
 make
 make iso
 popd
@@ -43,7 +45,7 @@ popd
 mkdir -p %{buildroot}%{_libdir}/%{name}
 mkdir -p %{buildroot}%{_datarootdir}/%{name}
 
-pushd build/x86_64
+pushd build/%{_arch}
 install -m 0644 mt86plus %{buildroot}%{_libdir}/%{name}/memtest86+%{mt_isa}.efi
 install -m 0644 mt86plus %{buildroot}%{_libdir}/%{name}/memtest86+%{mt_isa}.bin
 install -m 0644 memtest.iso %{buildroot}%{_datarootdir}/%{name}/memtest86+%{mt_isa}.iso

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-02  7:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-02  7:42 [rpms/memtest86+] rawhide: Add loongarch64 support Sun Haiyong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox