Skip to content

Commit

Permalink
UefiPayloadPkg/UefiPayloadPkg.dsc: Allow setting default Secure Boot …
Browse files Browse the repository at this point in the history
…state

Signed-off-by: Michał Żygowski <[email protected]>
  • Loading branch information
miczyg1 committed Oct 24, 2023
1 parent 2248bad commit 315c4fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions UefiPayloadPkg/UefiPayloadPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
# Security options:
#
DEFINE SECURE_BOOT_ENABLE = FALSE
DEFINE SECURE_BOOT_DEFAULT_ENABLE = TRUE
DEFINE TPM_ENABLE = TRUE
DEFINE SATA_PASSWORD_ENABLE = FALSE
DEFINE OPAL_PASSWORD_ENABLE = FALSE
Expand Down Expand Up @@ -439,6 +440,12 @@
gUefiPayloadPkgTokenSpaceGuid.PcdLoadOptionRoms|$(LOAD_OPTION_ROMS)
gEfiMdeModulePkgTokenSpaceGuid.PcdSdMmcGenericTimeoutValue|$(SD_MMC_TIMEOUT)

!if $(SECURE_BOOT_DEFAULT_ENABLE) == TRUE
gEfiSecurityPkgTokenSpaceGuid.PcdSecureBootDefaultEnable|1
!else
gEfiSecurityPkgTokenSpaceGuid.PcdSecureBootDefaultEnable|0
!endif

!if $(SOURCE_DEBUG_ENABLE)
gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
!endif
Expand Down

0 comments on commit 315c4fa

Please sign in to comment.