Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 27020f33a1b218facfb2c740ebd37cb90cfad2c7
https://github.com/tianocore/edk2/commit/27020f33a1b218facfb2c740ebd37cb90cfad2c7
Author: Michael D Kinney <[email protected]>
Date: 2026-01-06 (Tue, 06 Jan 2026)
Changed paths:
M UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc
Log Message:
-----------
UnitTestFrameworkPkg: Add Windows host-based unit test define
There are cases where DSC files must have logic to detect
if host-based unit tests are being built in a Windows
environment. Add HOST_BASED_UNIT_TESTING_ENABLED define
set to TRUE if that condition is detected.
One example is the optimized assembly files from Openssl
project that generate NASM source files that assume
Windows calling convention. Those NASM files must be used
for both firmware builds where the default compiler
calling convention is the Windows calling convention and
host-based unit tests built using any of the compilers
supported in Windows environment.
Also update UnitTestFrameworkPkgHost.dsc.inc to set
BUILD_TARGETS to NOOPT because host-based unit tests
only support NOOPT. If the DSC file that includes
UnitTestFrameworkPkgHost.dsc.inc uses a BUILD_TARGETS
other than NOOPT, this will override the DSC setting.
Signed-off-by: Michael D Kinney <[email protected]>
Commit: 706a3f989e0cda2d5b9bb4d9d91edb8e3da93709
https://github.com/tianocore/edk2/commit/706a3f989e0cda2d5b9bb4d9d91edb8e3da93709
Author: Michael D Kinney <[email protected]>
Date: 2026-01-06 (Tue, 06 Jan 2026)
Changed paths:
M CryptoPkg/CryptoPkgFeatureFlagPcds.dsc.inc
Log Message:
-----------
CryptoPkg: Use Openssl NASM for Windows host-based unit tests
The optimized NASM assembly files from Openssl project for
IA32/X64 assume a Windows calling convention. Those NASM
files must be used for both firmware builds where the
default compiler calling convention is the Windows calling
convention and host-based unit tests built using any of the
compilers supported in Windows environment.
All the VS20xx tool chains in the MSFT tool family use a
Windows calling convention. The CLANGPDB tool chain under
both Windows and Linux environments also use a Windows
calling convention. Set PcdOpensslLibAssemblySourceStyleNasm
to TRUE for these conditions.
Host-based unit tests built in a Windows environment also
use a Windows calling convention. If WIN_HOST_BUILD is set
indicating a Windows build environment and
HOST_BASED_UNIT_TESTING_ENABLED is also set indicating
host-based unit tests, then
PcdOpensslLibAssemblySourceStyleNasm must be set to TRUE.
Otherwise a Linux calling convention is assumed and
PcdOpensslLibAssemblySourceStyleNasm uses its DEC default
value of FALSE that uses the Openssl project optimized
.S files that assume a Linux calling convention.
Signed-off-by: Michael D Kinney <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/ccfc888f06d8...706a3f989e0c
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits