Sean Rhodes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60636 )
Change subject: payloads/tianocore: Enable building with SecureBoot support ......................................................................
payloads/tianocore: Enable building with SecureBoot support
Signed-off-by: Sean Rhodes sean@starlabs.systems Change-Id: I377f06754ff09a2879892bd9e3bd575b56ff1f4e --- M payloads/external/Makefile.inc M payloads/external/tianocore/Kconfig M payloads/external/tianocore/Makefile 3 files changed, 10 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/36/60636/1
diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc index 072d8d1..ade22b5 100644 --- a/payloads/external/Makefile.inc +++ b/payloads/external/Makefile.inc @@ -151,6 +151,7 @@ CONFIG_TIANOCORE_BOOT_TIMEOUT=$(CONFIG_TIANOCORE_BOOT_TIMEOUT) \ CONFIG_TIANOCORE_CBMEM_LOGGING=$(CONFIG_TIANOCORE_CBMEM_LOGGING) \ CONFIG_TIANOCORE_COREBOOTPAYLOAD=$(CONFIG_TIANOCORE_COREBOOTPAYLOAD) \ + CONFIG_TIANOCORE_SECUREBOOT=$(CONFIG_TIANOCORE_SECUREBOOT) \ CONFIG_TIANOCORE_USE_8254_TIMER=$(CONFIG_TIANOCORE_USE_8254_TIMER) \ GCC_CC_x86_32=$(GCC_CC_x86_32) \ GCC_CC_x86_64=$(GCC_CC_x86_64) \ diff --git a/payloads/external/tianocore/Kconfig b/payloads/external/tianocore/Kconfig index b7069aa..ad6533a 100644 --- a/payloads/external/tianocore/Kconfig +++ b/payloads/external/tianocore/Kconfig @@ -112,6 +112,10 @@ useful for bootloaders that are not fully 64-bit aware such as Qubes R4.0.4 bootloader.
+config TIANOCORE_SECUREBOOT + bool "Enable Secureboot Support" + default y + endif
if TIANOCORE_COREBOOTPAYLOAD diff --git a/payloads/external/tianocore/Makefile b/payloads/external/tianocore/Makefile index a4ccfc7..5479587 100644 --- a/payloads/external/tianocore/Makefile +++ b/payloads/external/tianocore/Makefile @@ -46,6 +46,10 @@ 4G=-D ABOVE_4G_MEMORY=FALSE endif
+ifeq ($(CONFIG_TIANOCORE_SECUREBOOT),y) +SB=-D SECURE_BOOT_ENABLE=TRUE +endif + TIMEOUT=-D PLATFORM_BOOT_TIMEOUT=$(CONFIG_TIANOCORE_BOOT_TIMEOUT)
ifneq ($(CONFIG_TIANOCORE_USE_8254_TIMER), y) @@ -55,7 +59,7 @@ ifeq ($(CONFIG_TIANOCORE_COREBOOTPAYLOAD),y) BUILD_STR=-q -a IA32 -a X64 -p CorebootPayloadPkg/CorebootPayloadPkgIa32X64.dsc -t COREBOOT -b $(BUILD_TYPE) $(TIMER) -DPS2_KEYBOARD_ENABLE else -BUILD_STR=-q -a IA32 -a X64 -p UefiPayloadPkg/UefiPayloadPkg.dsc -t COREBOOT -b $(BUILD_TYPE) $(TIMEOUT) $(build_flavor) $(CBMEM) $(4G) +BUILD_STR=-q -a IA32 -a X64 -p UefiPayloadPkg/UefiPayloadPkg.dsc -t COREBOOT -b $(BUILD_TYPE) $(TIMEOUT) $(build_flavor) $(CBMEM) $(4G) $(SB) endif
all: clean build