render / rpms / edk2

Forked from rpms/edk2 2 months ago
Clone

Blame SOURCES/0002-Remove-submodules.patch

795857
From b7053a8abb865ff58bc92cae6e573ae1e805b602 Mon Sep 17 00:00:00 2001
8c9246
From: Miroslav Rezanina <mrezanin@redhat.com>
8c9246
Date: Thu, 24 Mar 2022 03:23:02 -0400
8c9246
Subject: Remove submodules
8c9246
8c9246
Upstream edk2 tracks several submodules we do not need in RHEL (removal
8c9246
done by individual commits in previous RHEL versions):
8c9246
8c9246
- openssl: We use RHEL specific openssl submodule later (commit 48f993088e)
8c9246
- SoftFloat: required only for 32-bit ARM (commit 273787a5c2)
8c9246
- cmocka: needed for UnitTestFrameworkPkg we do not use (commit a2dca9bcd2)
8c9246
- oniguruma: rhel do not need this dependency (commit 73f4b42b3a)
8c9246
- brotli: removed this dependency (commits fcd212ffce, cf62a90767 and ac5782e6ab)
8c9246
- jansson: we do not depend on JSON parsing or formating (commit c84227659a)
8c9246
8c9246
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
8c9246
8c9246
MdeModulePkg: remove package-private Brotli include path (RH only)
c4e3b2
c4e3b2
Notes about the RHEL-8.3/20200603-ca407c7246bf [edk2-stable202005] ->
c4e3b2
RHEL-8.5/20210520-e1999b264f1f [edk2-stable202105] rebase:
c4e3b2
c4e3b2
- no change
c4e3b2
c4e3b2
Notes about the RHEL-8.2/20190904-37eef91017ad [edk2-stable201908] ->
c4e3b2
RHEL-8.3/20200603-ca407c7246bf [edk2-stable202005] rebase:
c4e3b2
c4e3b2
- New patch.
c4e3b2
c4e3b2
Originating from upstream commit 58802e02c41b
c4e3b2
("MdeModulePkg/BrotliCustomDecompressLib: Make brotli a submodule",
c4e3b2
2020-04-16), "MdeModulePkg/MdeModulePkg.dec" contains a package-internal
c4e3b2
include path into a Brotli submodule.
c4e3b2
c4e3b2
The edk2 build system requires such include paths to resolve successfully,
c4e3b2
regardless of the firmware platform being built. Because
c4e3b2
BrotliCustomDecompressLib is not consumed by any OvmfPkg or ArmVirtPkg
c4e3b2
platforms, and we've removed the submodule earlier in this patch set,
c4e3b2
remove the include path too.
c4e3b2
c4e3b2
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
c4e3b2
(cherry picked from commit e05e0de713c4a2b8adb6ff9809611f222bfe50ed)
c4e3b2
---
795857
 .gitmodules                                   | 25 -------------------
8c9246
 .../ArmSoftFloatLib/berkeley-softfloat-3      |  1 -
8c9246
 BaseTools/Source/C/BrotliCompress/brotli      |  1 -
8c9246
 BaseTools/Source/C/GNUmakefile                |  1 -
8c9246
 CryptoPkg/.gitignore                          |  1 +
8c9246
 CryptoPkg/Library/OpensslLib/openssl          |  1 -
8c9246
 .../Library/BrotliCustomDecompressLib/brotli  |  1 -
8c9246
 MdeModulePkg/MdeModulePkg.dec                 |  3 ---
8c9246
 .../Universal/RegularExpressionDxe/oniguruma  |  1 -
8c9246
 RedfishPkg/Library/JsonLib/jansson            |  1 -
8c9246
 UnitTestFrameworkPkg/Library/CmockaLib/cmocka |  1 -
795857
 11 files changed, 1 insertion(+), 36 deletions(-)
8c9246
 delete mode 160000 ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3
8c9246
 delete mode 160000 BaseTools/Source/C/BrotliCompress/brotli
8c9246
 create mode 100644 CryptoPkg/.gitignore
8c9246
 delete mode 160000 CryptoPkg/Library/OpensslLib/openssl
8c9246
 delete mode 160000 MdeModulePkg/Library/BrotliCustomDecompressLib/brotli
8c9246
 delete mode 160000 MdeModulePkg/Universal/RegularExpressionDxe/oniguruma
8c9246
 delete mode 160000 RedfishPkg/Library/JsonLib/jansson
8c9246
 delete mode 160000 UnitTestFrameworkPkg/Library/CmockaLib/cmocka
c4e3b2
8c9246
diff --git a/BaseTools/Source/C/GNUmakefile b/BaseTools/Source/C/GNUmakefile
795857
index 5275f657ef..39d7199753 100644
8c9246
--- a/BaseTools/Source/C/GNUmakefile
8c9246
+++ b/BaseTools/Source/C/GNUmakefile
795857
@@ -51,7 +51,6 @@ all: makerootdir subdirs
8c9246
 LIBRARIES = Common
8c9246
 VFRAUTOGEN = VfrCompile/VfrLexer.h
8c9246
 APPLICATIONS = \
8c9246
-  BrotliCompress \
8c9246
   VfrCompile \
8c9246
   EfiRom \
8c9246
   GenFfs \
c4e3b2
diff --git a/MdeModulePkg/MdeModulePkg.dec b/MdeModulePkg/MdeModulePkg.dec
795857
index 58e6ab0048..775f1b27af 100644
c4e3b2
--- a/MdeModulePkg/MdeModulePkg.dec
c4e3b2
+++ b/MdeModulePkg/MdeModulePkg.dec
c4e3b2
@@ -24,9 +24,6 @@
c4e3b2
 [Includes]
c4e3b2
   Include
c4e3b2
 
c4e3b2
-[Includes.Common.Private]
c4e3b2
-  Library/BrotliCustomDecompressLib/brotli/c/include
c4e3b2
-
c4e3b2
 [LibraryClasses]
c4e3b2
   ##  @libraryclass  Defines a set of methods to reset whole system.
c4e3b2
   ResetSystemLib|Include/Library/ResetSystemLib.h