Skip to content

Commit ce2df1d

Browse files
committed
OvmfPkg/OvmfPkgX64: Build the SV Boot Wizard into FV
Signed-off-by: Michał Żygowski <[email protected]>
1 parent 8bc4aa9 commit ce2df1d

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

OvmfPkg/OvmfPkgX64.dsc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
DEFINE OPAL_PASSWORD_ENABLE = TRUE
4646
DEFINE DASHARO_SYSTEM_FEATURES_ENABLE = TRUE
4747
DEFINE SETUP_PASSWORD_ENABLE = TRUE
48+
DEFINE SOVEREIGN_BOOT_ENABLE = FALSE
4849

4950
#
5051
# Network definition
@@ -683,6 +684,12 @@
683684
gDasharoSystemFeaturesTokenSpaceGuid.PcdPowerMenuShowDGPUPowerOption|FALSE
684685

685686
gEfiSecurityPkgTokenSpaceGuid.PcdSecureBootDefaultEnable|0
687+
688+
!if $(SECURE_BOOT_ENABLE) == TRUE
689+
gDasharoSystemFeaturesTokenSpaceGuid.PcdSovereignBootEnabled|$(SOVEREIGN_BOOT_ENABLE)
690+
gDasharoSystemFeaturesTokenSpaceGuid.PcdSovereignBootDefaultState|TRUE
691+
!endif
692+
686693
################################################################################
687694
#
688695
# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
@@ -1053,8 +1060,6 @@
10531060
!endif
10541061
!endif
10551062

1056-
DasharoModulePkg/Application/SovereignBootWizard/SovereignBootWizard.inf
1057-
10581063
#
10591064
# Hash2
10601065
#
@@ -1080,6 +1085,11 @@
10801085
SecurityPkg/EnrollFromDefaultKeysApp/EnrollFromDefaultKeysApp.inf
10811086
SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDefaultKeysDxe.inf
10821087
OvmfPkg/EnrollDefaultKeys/EnrollDefaultKeys.inf
1088+
1089+
!if $(SOVEREIGN_BOOT_ENABLE) == TRUE
1090+
DasharoModulePkg/Application/SovereignBootWizard/SovereignBootWizard.inf
1091+
!endif
1092+
10831093
!endif
10841094

10851095
OvmfPkg/PlatformDxe/Platform.inf

OvmfPkg/OvmfPkgX64.fdf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ INF OvmfPkg/LsiScsiDxe/LsiScsiDxe.inf
288288
INF SecurityPkg/EnrollFromDefaultKeysApp/EnrollFromDefaultKeysApp.inf
289289
INF SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDefaultKeysDxe.inf
290290

291+
!if $(SOVEREIGN_BOOT_ENABLE) == TRUE
292+
INF DasharoModulePkg/Application/SovereignBootWizard/SovereignBootWizard.inf
293+
!endif
294+
291295
# gDefaultKEKFileGuid
292296
FILE FREEFORM = 6F64916E-9F7A-4C35-B952-CD041EFB05A3 {
293297
SECTION RAW = DasharoPayloadPkg/SecureBootDefaultKeys/MicCorKEKCA2011_2011-06-24.crt

0 commit comments

Comments
 (0)