From ed8e856633ebd6dce3c487e4d07baeadb9297811 Mon Sep 17 00:00:00 2001 From: Huang Yang Date: Mon, 1 Sep 2025 14:15:57 +0800 Subject: [PATCH] add loongarch support --- 0001-uio-add-loongarch.patch | 25 +++++++++++++++++++++++++ golang-github-u-root-uio.spec | 8 +++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0001-uio-add-loongarch.patch diff --git a/0001-uio-add-loongarch.patch b/0001-uio-add-loongarch.patch new file mode 100644 index 0000000..73ba261 --- /dev/null +++ b/0001-uio-add-loongarch.patch @@ -0,0 +1,25 @@ +From bf90be79956b36aa58833306b8dbcf75d22fb783 Mon Sep 17 00:00:00 2001 +From: Huang Yang +Date: Mon, 1 Sep 2025 11:23:18 +0800 +Subject: [PATCH] uio add loongarch + +--- + ubinary/little_endian.go | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ubinary/little_endian.go b/ubinary/little_endian.go +index 317bb91..60adf65 100644 +--- a/ubinary/little_endian.go ++++ b/ubinary/little_endian.go +@@ -2,7 +2,7 @@ + // Use of this source code is governed by a BSD-style + // license that can be found in the LICENSE file. + +-// +build 386 amd64 arm arm64 mipsle mips64le ppc64le riscv riscv64 ++// +build 386 amd64 arm arm64 mipsle mips64le ppc64le riscv riscv64 loong64 + + package ubinary + +-- +2.43.7 + diff --git a/golang-github-u-root-uio.spec b/golang-github-u-root-uio.spec index 8453d3d..87be7dd 100644 --- a/golang-github-u-root-uio.spec +++ b/golang-github-u-root-uio.spec @@ -12,12 +12,13 @@ version tags.} %global golicenses LICENSE Name: %{goname} Version: 0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Golang package for breaking up circular dependencies in u-root License: BSD URL: %{gourl} Source0: %{gosource} +Patch3000: 0001-uio-add-loongarch.patch BuildRequires: golang(golang.org/x/sys/unix) @@ -28,6 +29,7 @@ BuildRequires: golang(golang.org/x/sys/unix) %prep %goprep +%autopatch -p1 %install %gopkginstall @@ -40,6 +42,10 @@ BuildRequires: golang(golang.org/x/sys/unix) %gopkgfiles %changelog +* Mon Sep 01 2025 Huang Yang - 0-3.gite40b768 +- [Type] bugfix +- [DESC] add loongarch support + * Mon Jun 09 2025 bbrucezhang - 0-2.gite40b768 - Rebuilt for loongarch64 -- Gitee