From e207872b69dad372184ba61e8db31f47d5fcc1d1 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Thu, 14 Aug 2025 17:36:16 +0800 Subject: [PATCH] fix build error for edk2 on loongarch64 --- ...-build-error-for-edk2-on-loongarch64.patch | 24 +++++++++++++++++++ edk2.spec | 6 ++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 0090-fix-build-error-for-edk2-on-loongarch64.patch diff --git a/0090-fix-build-error-for-edk2-on-loongarch64.patch b/0090-fix-build-error-for-edk2-on-loongarch64.patch new file mode 100644 index 0000000..88e2f59 --- /dev/null +++ b/0090-fix-build-error-for-edk2-on-loongarch64.patch @@ -0,0 +1,24 @@ +From c3c361406172bb10f78c94477647007dcc2614fb Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Thu, 14 Aug 2025 17:29:31 +0800 +Subject: [PATCH] fix build error for edk2 on loongarch64 + +--- + Platform/Loongson/LoongArchQemuPkg/Loongson.dsc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc b/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc +index 4ddc0114..da6f351e 100644 +--- a/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc ++++ b/Platform/Loongson/LoongArchQemuPkg/Loongson.dsc +@@ -155,6 +155,7 @@ + PciHostBridgeUtilityLib | OvmfPkg/Library/PciHostBridgeUtilityLib/PciHostBridgeUtilityLib.inf + MmuLib | Platform/Loongson/LoongArchQemuPkg/Library/MmuLib/MmuBaseLib.inf + FileExplorerLib | MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf ++ RngLib | MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf + + !if $(HTTP_BOOT_ENABLE) == TRUE + HttpLib | MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf +-- +2.43.0 + diff --git a/edk2.spec b/edk2.spec index ec47d01..c69f673 100644 --- a/edk2.spec +++ b/edk2.spec @@ -7,7 +7,7 @@ Name: edk2 Version: %{stable_date} -Release: 23 +Release: 24 Summary: EFI Development Kit II License: BSD-2-Clause-Patent and OpenSSL and MIT URL: https://github.com/tianocore/edk2 @@ -148,6 +148,7 @@ patch88: 0088-SecurityPkg-Out-of-bound-read-in-HashPeImageByType.patch # Fix CVE-2023-5678 patch89: 0089-CryptoPkg-Make-DH_check_pub_key-and.patch +patch90: 0090-fix-build-error-for-edk2-on-loongarch64.patch BuildRequires: acpica-tools gcc gcc-c++ libuuid-devel python3 bc nasm python3-unversioned-command isl @@ -418,6 +419,9 @@ chmod +x %{buildroot}%{_bindir}/Rsa2048Sha256GenerateKeys %endif %changelog +* Thu Aug 14 2025 Wenlong Zhang - 202308-24 +- fix build error for edk2 on loongarch64 + * Thu Jun 26 2025 taolinghongfei - 202308-23 - fix CVE-2023-5678 -- Gitee