35065 Commits

Author SHA1 Message Date
0838bf1531 UnitTestFrameworkPkg/SubhookLib: Update GCC defines
Add -DSUBHOOK_STATIC to all GCC family builds to match
defines in MSFT family builds.

Also remove /EHsc from MSFT CC_FLAGS. /EHs is added to
CC_FLAGS in UnitTestFrameworkPkgHost.dsc.inc for all
components.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-09-28 23:38:21 +00:00
6e65f7df90 UnitTestFrameworkPkg/CmockaLib: Add CLANGPDB support
Add CLANGPDB family defines to match MSFT family defines.
Also add -Wno-deprecated-declarations to CLANGPDB family
to ignore warnings detected when building cmocka sources
with clang compiler.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-09-28 23:38:21 +00:00
81a7efddd5 UnitTestFrameworkPkg/Include: Update GoogleTestLib for CLANG
Update GoogleTestLib.h to support Windows/CLANGPDB build.
When using Windows/CLANGPDB, _MSC_VER is not defined. If
it is not defined, then set to 1900 for Visual Studio 2015
or newer compatibility when using windows include files for
host based unit test application builds. If _MSC_VER is not
set, then those application fail to build.

Also address a Windows/CLANG issue when ASAN is enabled
by providing an alternate implementation of the
EXPECT_THROW_MESSAGE() and ASSERT_THROW_MESSAGE() macros.
Without this alternate implementation, an exception is
generated due to the description of the ASSERT() condition
being NULL.

Update all implementations of EXPECT_THROW_MESSAGE() and
ASSERT_THROW_MESSAGE() to support parameters to the
statement executed to return values.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-09-28 23:38:21 +00:00
9731114a00 UnitTestFrameworkPkg: Add CLANGDWARF and CLANGPDB support
Update host-based unit test [BuildOptions] to support
CLANGDWARF and CLANGPDB.

* Use CLANG specific code coverage options
* Map CLANG trap function to abort() to resolve link issues
  when building Google Test based unit tests. The default
  mapping from tools_def.txt is to an unresolved function
  to generate a build failure. Mapping to abort() overrides
  the default mapping. If a unit test introduces undefined
  behavior in a code path that is executed, then abort() is
  called and the unit test application exits with an error
  and fails the unit test.
* Update GCC to pass --coverage in link command so the
  linker automatically includes -lgcov. The explicit
  linking of -lgcov is removed.
* Add /EHs to all MSFT components instead of only components
  of type HOST_APPLICATION.
* Add CXX_FLAGS for all tool chain families. Use c++ 20 for
  MSFT and GCC and c++ 17 for clang. Clang generates errors
  compiling Google Test with c++ 20.
* Add -z noexecstack to all GCC builds to reduce warnings.
* Add UNIT_TESTING_CODE_COVERAGE_ENABLE that is enabled by
  default. Can be used to temporarily disable code coverage
  when debugging interactions between unit testing features.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-09-28 23:38:21 +00:00
f832329add UnitTestFrameworkPkg: Set defines for CLANGPDB builds
Set same defines for CLANGPDB tool chain family as all
tool chain other families.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-09-28 23:38:21 +00:00
8310dfa9f4 CryptoPkg/Library/OpensslLib: Add back PKCS12 support
Fix wifi driver fails to configure the private key to CryptoDxe.

This enables TlsSetHostPrivateKeyEx() to handle PBES2-encrypted private
keys by providing PKCS12_pbe_crypt_ex().

Signed-off-by: Amy Chan <amy.chan@intel.com>
2025-09-26 04:11:48 +00:00
2ff173af12 BaseTools: Remove ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from BaseTools.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
bc31103006 MdePkg: Remove ARM32 Support from CompilerIntrinsicsLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from CompilerIntrinsicsLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
49b3eb5907 MdePkg: Remove ARM32 Support from BaseLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from BaseLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
84c026111c MdePkg: Remove ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes the remaining ARM32 code from MdePkg. This
also removes irrelevant VALID_ARCHITECTURES comments from
infs that are not arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
c7ada42ce4 MdePkg: Remove ARM32 Support from BaseCpuLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from BaseCpuLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
756fd38a80 MdePkg: Remove ARM32 Support from PE/COFF Libs
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from the PE/COFF libs.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
9ca3dc9b0d MdePkg: Remove ARM32 Support from BaseSynchronizationLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from BaseSynchronizationLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
673ff79628 MdePkg: Remove ARM32 Support from BaseIoIntrinsicLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from BaseIoIntrinsicLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
0dc21d1f75 MdePkg: Remove ARM32 Support from BaseMemoryLibOptDxe
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from  BaseMemoryLibOptDxe.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
f05cf0fd66 MdePkg: Remove ARM32 Support from ArmS*cLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from  ArmS*cLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
7838ee347b MdePkg: Remove ARM32 Support from Service Table Libs
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from the Service Table Libs. This
also removes irrelevant VALID_ARCHITECTURES comments from
infs that are not arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
abfe5b2869 MdePkg: Remove ARM32 Support from StackCheckLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from StackCheckLib and moves the
AARCH64 files to the top level.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
5984676364 MdePkg: Remove ARM32 Support from UnitTests
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from UnitTests and moves the
AARCH64 files to the top level.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
5f9e2eac7a UnitTestFrameworkPkg: Remove ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from UnitTestFrameworkPkg. It also
drops irrelevant VALID_ARCHITECTURES comments from infs that
are not arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
ef79d58427 MdeModulePkg: Remove ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 support from MdeModulePkg. This also
drops irrelevant VALID_ARCHITECTURE comments from infs that
are not arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
80de048c1b ArmPkg: Remove ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from the remaining parts of ArmPkg.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
f73b53c283 ArmPkg: Remove Incorrect ArmPkg.dsc Sections
Components.common.module_type is not correct DSC syntax.
This removes the two instances from ArmPkg.dsc to
conform to correct DSC syntax.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
cdc8858e19 ArmPkg: Remove ARM32 Support from ArmLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from ArmLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
4261eb1bef ArmPkg: Remove ARM32 Support from ArmHvcLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from ArmHvcLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
889676ac60 ArmPkg: Remove ARM32 Support from ArmMonitorLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from ArmMonitorLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
4bd1f47642 ArmPkg: Remove ARM32 Support from SMBIOS
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from SMBIOS.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
79e9dee6c7 ArmPkg: Remove ARM32 Support from ArmExceptionLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from ArmExceptionLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
a40d7f7d0b ArmPkg: Remove ARM32 Support from CpuDxe
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from CpuDxe.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
f75198f592 ArmPkg: Remove ARM32 Support from ArmStandaloneMmCoreEntryPoint
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from ArmStandaloneMmCoreEntryPoint.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
88b5cb3e12 ArmPkg: Remove ARM32 Support from DefaultExceptionHandlerLib
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from DefaultExceptionHandlerLib.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
3741a42087 ArmPkg: Remove ARM32 Support from ArmGicDxe
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from ArmGicDxe.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
bacb949dd9 ArmPkg: Remove ARM32 Support from SemiHostFs
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from SemiHostLib and SemiHostFs.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
cebf57e701 ArmPkg: Remove ARM32 Comments and Supported Arch
edk2 is dropping support for the ARM32 architecture. This
commit removes comments mentioning ARM32 and ARM32 as a
supported arch in ArmPkg.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
45147d3021 ArmPlatformPkg: Remove ARM32 Support from ArmPlatformLibNull
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from ArmPlatformLibNull.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
dc1ccc9daf ArmPlatformPkg: Remove ARM32 Support from Sec
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from Sec.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
737ca4ea4f ArmPlatformPkg: Remove ARM32 Support from PeilessSec
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 files from PeilessSec.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
b9b1365a76 ArmPlatformPkg: Remove ARM32 Comment and Supported Architecture
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 comments and as a supported architecture
in ArmPlatformPkg. It also drops irrelevant VALID_ARCHITECTURES
comments from INFs that are not arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
c6ff778056 OvmfPkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from OvmfPkg. This drops irrelevant
VALID_ARCHITECTURES comments from infs that are not arch
specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
2ba9441e0b CryptoPkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from CryptoPkg. This also drops
irrelevant VALID_ARCHITECTURES comments from infs that are
not arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
90dc87714c EmulatorPkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from EmulatorPkg.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
9b8cab36cd FatPkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from FatPkg.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
b1f7c444e1 DynamicTablesPkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from DynamicTablesPkg. This also
drops irrelevant VALID_ARCHITECTURES comments from infs that
are not arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
45fde54948 EmbeddedPkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from EmbeddedPkg. This also drops
irrelevant VALID_ARCHITECTURES comments from infs that are not
arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
2c059facb3 FmpDevicePkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from FmpDevicePkg. This also drops
irrelevant VALID_ARCHITECTURES comments from infs that are
not arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
1764d4eb2b NetworkPkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code from NetworkPkg. This also drops
irrelevant VALID_ARCHITECTURES comments from infs that are
not arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
470a80094c RedfishPkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit drops ARM32 code from RedfishPkg. This also drops
irrelevant VALID_ARCHITECTURES comments in infs that are
not arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
2b0ce49c50 PrmPkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
removes support from PrmPkg. It also removes irrelevant
VALID_ARCHITECTURES comments from infs that are not
arch specific.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
08ae634ccb SecurityPkg: Drop ARM32 Support
edk2 is dropping support for the ARM32 architecture. This
commit removes ARM32 code in SecurityPkg.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00
9c657c3685 ShellPkg: Remove ARM32 Support
edk2 is dropping support for the ARM32 architecture. This commit
removes support from ShellPkg.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2025-09-25 22:04:10 +00:00