From 646f0ce5abd55e4f0f40212964fc44f2ea8e787b Mon Sep 17 00:00:00 2001 From: lijuzhang Date: Wed, 8 May 2024 08:21:09 +0000 Subject: [PATCH] replace vendor for BOOTX64.CSV or BOOTAA64.CSV Signed-off-by: lijuzhang (cherry picked from commit ca2774aef55f6c40018203c50dbaf652b7650731) --- shim.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/shim.spec b/shim.spec index 6dde1b6..91582ef 100644 --- a/shim.spec +++ b/shim.spec @@ -25,7 +25,7 @@ Name: shim Version: 15.7 -Release: 10 +Release: 11 Summary: First-stage UEFI bootloader ExclusiveArch: x86_64 aarch64 License: BSD @@ -153,6 +153,11 @@ install -m 0700 %{SOURCE1} ${RPM_BUILD_ROOT}/%{shimefivendor} %ifarch x86_64 install -m 0700 %{SOURCE2} ${RPM_BUILD_ROOT}/%{shimefivendor} %endif +%if "%{_vendor}" != "openEuler" + iconv -f UTF-16LE -t UTF-8 ${RPM_BUILD_ROOT}/%{shimefivendor}/%{bootcsv} > /tmp/%{bootcsv}.tmp + sed -i -e 's/openeuler/%{_vendor}/g' -e 's/openEuler/%{_vendor}/g' /tmp/%{bootcsv}.tmp + iconv -f UTF-8 -t UTF-16LE /tmp/%{bootcsv}.tmp > ${RPM_BUILD_ROOT}/%{shimefivendor}/%{bootcsv} +%endif # install the debug symbols install -d ${RPM_BUILD_ROOT}/usr/lib/debug/%{shimefivendor} @@ -185,6 +190,9 @@ make test /usr/src/debug/%{name}-%{version}-%{release}/* %changelog +* Wed May 8 2024 lijuzhang - 15.7-11 +- replace vendor for BOOTX64.CSV or BOOTAA64.CSV + * Tue May 7 2024 jinlun - 15.7-10 - Fix the TPCM feature issue, and ignore signing failures due to insufficient permissions. -- Gitee