From efd93b56634a1d5750bfc679197b037176bd0be2 Mon Sep 17 00:00:00 2001 From: wxiat Date: Tue, 20 Jun 2023 08:54:14 +0800 Subject: [PATCH 1/2] add sw --- efivar.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/efivar.spec b/efivar.spec index b51995f..d433d5a 100644 --- a/efivar.spec +++ b/efivar.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.4 +%define anolis_release .0.5 Name: efivar Version: 37 Release: 4%{anolis_release}%{?dist} @@ -6,7 +6,7 @@ Summary: Tools to manage UEFI variables License: LGPL-2.1 URL: https://github.com/rhboot/efivar Requires: %{name}-libs = %{version}-%{release} -ExclusiveArch: %{ix86} x86_64 aarch64 %{arm} loongarch64 +ExclusiveArch: %{ix86} x86_64 aarch64 %{arm} loongarch64 sw_64 Requires: glibc Provides: /usr/bin/efivar @@ -158,6 +158,9 @@ make libdir=%{_libdir} bindir=%{_bindir} CFLAGS="$RPM_OPT_FLAGS -flto -flto-part %{_libdir}/*.so.* %changelog +* Tue Jun 20 2023 wxiat - 37-4.0.5 +- add sw patch + * Wed Feb 1 2023 wangkaiyuan - 37-4.0.4 - Fix conversion from UTF8 to UCS2 Resolves: ANBZ#3912 -- Gitee From 6df7d0a7c4af7409919854b92eb6699930ee82a1 Mon Sep 17 00:00:00 2001 From: Weisson Date: Thu, 22 Feb 2024 19:16:49 +0800 Subject: [PATCH 2/2] add sw support. Signed-off-by: Weisson --- 0067-add-sw-support.patch | 26 ++++++++++++++++++++++++++ efivar.spec | 7 ++++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 0067-add-sw-support.patch diff --git a/0067-add-sw-support.patch b/0067-add-sw-support.patch new file mode 100644 index 0000000..b3bdb5b --- /dev/null +++ b/0067-add-sw-support.patch @@ -0,0 +1,26 @@ +From e045a24bece4462d990bebc73d5831d0cc504b56 Mon Sep 17 00:00:00 2001 +From: Weisson +Date: Thu, 22 Feb 2024 18:50:50 +0800 +Subject: [PATCH] add sw support. + +Signed-off-by: Weisson +--- + src/include/defaults.mk | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/include/defaults.mk b/src/include/defaults.mk +index 781587b..027dc9d 100644 +--- a/src/include/defaults.mk ++++ b/src/include/defaults.mk +@@ -57,7 +57,7 @@ override CCLDFLAGS = $(CFLAGS) -L. $(_CCLDFLAGS) \ + $(LDFLAGS) \ + $(call pkg-config-ccldflags) + HOST_ARCH=$(shell uname -m) +-ifneq ($(HOST_ARCH),ia64) ++ifneq ($(HOST_ARCH), sw_64) + HOST_MARCH=-march=native + else + HOST_MARCH= +-- +2.31.1 + diff --git a/efivar.spec b/efivar.spec index d433d5a..ab111b7 100644 --- a/efivar.spec +++ b/efivar.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.5 +%define anolis_release .0.6 Name: efivar Version: 37 Release: 4%{anolis_release}%{?dist} @@ -81,6 +81,7 @@ Patch0063: 0063-Work-around-autoconf-existing-in-the-world.patch Patch0064: 0064-Fix-efivar-w-and-efivar-a.patch Patch0065: 0065-Fix-variable-sz-uninitialized-error.patch Patch0066: 0066-Fix-conversion-from-UTF8-to-UCS2.patch +Patch0067: 0067-add-sw-support.patch %description efivar provides a simple command line interface to the UEFI variable facility. @@ -158,6 +159,10 @@ make libdir=%{_libdir} bindir=%{_bindir} CFLAGS="$RPM_OPT_FLAGS -flto -flto-part %{_libdir}/*.so.* %changelog + +* Thu Feb 22 2024 Weisson - 37-4.0.6 +- add sw patch + * Tue Jun 20 2023 wxiat - 37-4.0.5 - add sw patch -- Gitee