Skip to content

Commit

Permalink
SecurityPkg: Temporarily remove DeviceSecurity (and libspdm) from build
Browse files Browse the repository at this point in the history
The SecurityPkg/DeviceSecurity/SpdmLib/libspdm submodule contains a
unit_test/cmockalib/cmocka submodule to https://git.cryptomilk.org/projects/cmocka.git.

cryptomilk.org is very unreliable and breaking all builds right now.
Since the DeviceSecurity content is not actively used in any main
branches, this change removes the libspdm submodule from the package
which, in turn, leads to removal of the content dependent on the
submodule.

These changes are made such that this commit can be reverted in the
future to easily restore everything after the libspdm submodule
can find a more reliable host than cryptomilk.org.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
  • Loading branch information
makubacki committed May 22, 2024
1 parent 966c4ee commit 11506d5
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 37 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

8 changes: 7 additions & 1 deletion .markdownlintignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@
# Ignore cloned dependencies
/MU_BASECORE

# MU_CHANGE [BEGIN]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
# Ignore libspdm submodule
/SecurityPkg/DeviceSecurity/SpdmLib/libspdm
# /SecurityPkg/DeviceSecurity/SpdmLib/libspdm
# MU_CHANGE [END]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
10 changes: 8 additions & 2 deletions .pytool/CISettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,14 @@ def GetRequiredSubmodules(self):
If no RequiredSubmodules return an empty iterable
'''
rs = []
rs.append(RequiredSubmodule(
"SecurityPkg/DeviceSecurity/SpdmLib/libspdm", False))
# MU_CHANGE [BEGIN]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
# rs.append(RequiredSubmodule(
# "SecurityPkg/DeviceSecurity/SpdmLib/libspdm", False))
# MU_CHANGE [END]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
return rs

def GetName(self):
Expand Down
1 change: 0 additions & 1 deletion SecurityPkg/DeviceSecurity/SpdmLib/libspdm
Submodule libspdm deleted from 999ed7
30 changes: 25 additions & 5 deletions SecurityPkg/SecurityPkg.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,15 @@
},
"DscCompleteCheck": {
"DscPath": "SecurityPkg.dsc",
"IgnoreInf": []
"IgnoreInf": [
# MU_CHANGE [BEGIN]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
SecurityPkg/DeviceSecurity/**
# MU_CHANGE [END]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
]
},
## options defined .pytool/Plugin/HostUnitTestDscCompleteCheck
"HostUnitTestDscCompleteCheck": {
Expand All @@ -86,7 +94,13 @@
"LibraryClassCheck": {
"IgnoreHeaderFile": [
"DeviceSecurity/SpdmLib/Include/library",
"DeviceSecurity/SpdmLib/libspdm/include/library",
# MU_CHANGE [BEGIN]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
# "DeviceSecurity/SpdmLib/libspdm/include/library",
# MU_CHANGE [END]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
],
"skip": True
},
Expand Down Expand Up @@ -148,9 +162,15 @@
"loongson"
],
"IgnoreStandardPaths": [], # Standard Plugin defined paths that should be ignore
"IgnoreFiles": [
"DeviceSecurity/SpdmLib/libspdm"
],
# MU_CHANGE [BEGIN]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
# "IgnoreFiles": [
# "DeviceSecurity/SpdmLib/libspdm"
# ],
# MU_CHANGE [END]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
"AdditionalIncludePaths": [] # Additional paths to spell check (wildcards supported)
},

Expand Down
8 changes: 7 additions & 1 deletion SecurityPkg/SecurityPkg.dec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@

[Includes.Common.Private]
DeviceSecurity/SpdmLib/Include
DeviceSecurity/SpdmLib/libspdm/include
# MU_CHANGE [BEGIN]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)
# DeviceSecurity/SpdmLib/libspdm/include
# MU_CHANGE [END]: Remove SPDM from the build until the cmocka
# submodule in the libspdm submodule is stable
# (on github)

[LibraryClasses]
## @libraryclass Provides hash interfaces from different implementations.
Expand Down
56 changes: 32 additions & 24 deletions SecurityPkg/SecurityPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,22 @@
SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
SpdmSecurityLib|SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmSecurityLib.inf
SpdmDeviceSecretLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmDeviceSecretLibNull.inf
SpdmCryptLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmCryptLib.inf
SpdmCommonLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmCommonLib.inf
SpdmRequesterLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmRequesterLib.inf
SpdmResponderLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmResponderLib.inf
SpdmSecuredMessageLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmSecuredMessageLib.inf
SpdmTransportMctpLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmTransportMctpLib.inf
SpdmTransportPciDoeLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmTransportPciDoeLib.inf
CryptlibWrapper|SecurityPkg/DeviceSecurity/OsStub/CryptlibWrapper/CryptlibWrapper.inf
PlatformLibWrapper|SecurityPkg/DeviceSecurity/OsStub/PlatformLibWrapper/PlatformLibWrapper.inf
MemLibWrapper|SecurityPkg/DeviceSecurity/OsStub/MemLibWrapper/MemLibWrapper.inf
# MU_CHANGE [BEGIN]: Remove SPDM from the build until the cmocka submodule in the
# libspdm submodule is stable (on github)
# SpdmSecurityLib|SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmSecurityLib.inf
# SpdmDeviceSecretLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmDeviceSecretLibNull.inf
# SpdmCryptLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmCryptLib.inf
# SpdmCommonLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmCommonLib.inf
# SpdmRequesterLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmRequesterLib.inf
# SpdmResponderLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmResponderLib.inf
# SpdmSecuredMessageLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmSecuredMessageLib.inf
# SpdmTransportMctpLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmTransportMctpLib.inf
# SpdmTransportPciDoeLib|SecurityPkg/DeviceSecurity/SpdmLib/SpdmTransportPciDoeLib.inf
# CryptlibWrapper|SecurityPkg/DeviceSecurity/OsStub/CryptlibWrapper/CryptlibWrapper.inf
# PlatformLibWrapper|SecurityPkg/DeviceSecurity/OsStub/PlatformLibWrapper/PlatformLibWrapper.inf
# MemLibWrapper|SecurityPkg/DeviceSecurity/OsStub/MemLibWrapper/MemLibWrapper.inf
# MU_CHANGE [END]: Remove SPDM from the build until the cmocka submodule in the
# libspdm submodule is stable (on github)
OemTpm2InitLib|SecurityPkg/Library/OemTpm2InitLibNull/OemTpm2InitLib.inf ## MS_CHANGE_?
SourceDebugEnabledLib|SourceLevelDebugPkg/Library/SourceDebugEnabled/SourceDebugEnabledLib.inf ## MS_CHANGE_?
Hash2CryptoLib|SecurityPkg/Library/BaseHash2CryptoLibNull/BaseHash2CryptoLibNull.inf ## MU_CHANGE
Expand Down Expand Up @@ -314,18 +318,22 @@
#
# SPDM
#
SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmSecurityLib.inf
SecurityPkg/DeviceSecurity/SpdmLib/SpdmDeviceSecretLibNull.inf
SecurityPkg/DeviceSecurity/SpdmLib/SpdmCryptLib.inf
SecurityPkg/DeviceSecurity/SpdmLib/SpdmCommonLib.inf
SecurityPkg/DeviceSecurity/SpdmLib/SpdmRequesterLib.inf
SecurityPkg/DeviceSecurity/SpdmLib/SpdmResponderLib.inf
SecurityPkg/DeviceSecurity/SpdmLib/SpdmSecuredMessageLib.inf
SecurityPkg/DeviceSecurity/SpdmLib/SpdmTransportMctpLib.inf
SecurityPkg/DeviceSecurity/SpdmLib/SpdmTransportPciDoeLib.inf
SecurityPkg/DeviceSecurity/OsStub/CryptlibWrapper/CryptlibWrapper.inf
SecurityPkg/DeviceSecurity/OsStub/PlatformLibWrapper/PlatformLibWrapper.inf
SecurityPkg/DeviceSecurity/OsStub/MemLibWrapper/MemLibWrapper.inf
# MU_CHANGE [BEGIN]: Remove SPDM from the build until the cmocka submodule in the
# libspdm submodule is stable (on github)
# SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmSecurityLib.inf
# SecurityPkg/DeviceSecurity/SpdmLib/SpdmDeviceSecretLibNull.inf
# SecurityPkg/DeviceSecurity/SpdmLib/SpdmCryptLib.inf
# SecurityPkg/DeviceSecurity/SpdmLib/SpdmCommonLib.inf
# SecurityPkg/DeviceSecurity/SpdmLib/SpdmRequesterLib.inf
# SecurityPkg/DeviceSecurity/SpdmLib/SpdmResponderLib.inf
# SecurityPkg/DeviceSecurity/SpdmLib/SpdmSecuredMessageLib.inf
# SecurityPkg/DeviceSecurity/SpdmLib/SpdmTransportMctpLib.inf
# SecurityPkg/DeviceSecurity/SpdmLib/SpdmTransportPciDoeLib.inf
# SecurityPkg/DeviceSecurity/OsStub/CryptlibWrapper/CryptlibWrapper.inf
# SecurityPkg/DeviceSecurity/OsStub/PlatformLibWrapper/PlatformLibWrapper.inf
# SecurityPkg/DeviceSecurity/OsStub/MemLibWrapper/MemLibWrapper.inf
# MU_CHANGE [END]: Remove SPDM from the build until the cmocka submodule in the
# libspdm submodule is stable (on github)

[Components.IA32, Components.X64]
SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
Expand Down

0 comments on commit 11506d5

Please sign in to comment.