payloads/tianocore: Add Kconfig option to enable cbmem logging
Logging to coreboot cbmem, instead of a serial console, was added to MrChromebox's uefipayloadpkg branch. Add a Kconfig option to enable this, and restrict it to the UEFIPAYLOAD payload option, since this feature does not exist in upstream edk2. Change-Id: Idef125235dc7ba885eb22ac69c6f752588a9e295 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55144 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Benjamin Doron <benjamin.doron00@gmail.com>
This commit is contained in:
parent
6e7f9d6824
commit
ba7f116728
1
payloads/external/Makefile.inc
vendored
1
payloads/external/Makefile.inc
vendored
@ -148,6 +148,7 @@ payloads/external/tianocore/tianocore/Build/UEFIPAYLOAD.fd tianocore: $(DOTCONFI
|
|||||||
CONFIG_TIANOCORE_UPSTREAM=$(CONFIG_TIANOCORE_UPSTREAM) \
|
CONFIG_TIANOCORE_UPSTREAM=$(CONFIG_TIANOCORE_UPSTREAM) \
|
||||||
CONFIG_MMCONF_BASE_ADDRESS=$(CONFIG_MMCONF_BASE_ADDRESS) \
|
CONFIG_MMCONF_BASE_ADDRESS=$(CONFIG_MMCONF_BASE_ADDRESS) \
|
||||||
CONFIG_TIANOCORE_BOOT_TIMEOUT=$(CONFIG_TIANOCORE_BOOT_TIMEOUT) \
|
CONFIG_TIANOCORE_BOOT_TIMEOUT=$(CONFIG_TIANOCORE_BOOT_TIMEOUT) \
|
||||||
|
CONFIG_TIANOCORE_CBMEM_LOGGING=$(CONFIG_TIANOCORE_CBMEM_LOGGING) \
|
||||||
GCC_CC_x86_32=$(GCC_CC_x86_32) \
|
GCC_CC_x86_32=$(GCC_CC_x86_32) \
|
||||||
GCC_CC_x86_64=$(GCC_CC_x86_64) \
|
GCC_CC_x86_64=$(GCC_CC_x86_64) \
|
||||||
GCC_CC_arm=$(GCC_CC_arm) \
|
GCC_CC_arm=$(GCC_CC_arm) \
|
||||||
|
12
payloads/external/tianocore/Kconfig
vendored
12
payloads/external/tianocore/Kconfig
vendored
@ -53,6 +53,18 @@ config TIANOCORE_RELEASE
|
|||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
|
if TIANOCORE_UEFIPAYLOAD
|
||||||
|
|
||||||
|
config TIANOCORE_CBMEM_LOGGING
|
||||||
|
bool "Enable Tianocore logging to CBMEM"
|
||||||
|
help
|
||||||
|
Select this option if you want to enable Tianocore logging to CBMEM.
|
||||||
|
You may want to increase the default cbmem buffer size when selecting
|
||||||
|
this option, especially if using a debug (vs release) build.
|
||||||
|
Selecting this option will increase the payload size in CBFS by ~220KB.
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
config TIANOCORE_BOOTSPLASH_IMAGE
|
config TIANOCORE_BOOTSPLASH_IMAGE
|
||||||
bool "Use a custom bootsplash image"
|
bool "Use a custom bootsplash image"
|
||||||
help
|
help
|
||||||
|
6
payloads/external/tianocore/Makefile
vendored
6
payloads/external/tianocore/Makefile
vendored
@ -30,9 +30,13 @@ else
|
|||||||
BUILD_TYPE=RELEASE
|
BUILD_TYPE=RELEASE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_TIANOCORE_CBMEM_LOGGING),y)
|
||||||
|
CBMEM=-D USE_CBMEM_FOR_CONSOLE=TRUE
|
||||||
|
endif
|
||||||
|
|
||||||
TIMEOUT=-D PLATFORM_BOOT_TIMEOUT=$(CONFIG_TIANOCORE_BOOT_TIMEOUT)
|
TIMEOUT=-D PLATFORM_BOOT_TIMEOUT=$(CONFIG_TIANOCORE_BOOT_TIMEOUT)
|
||||||
|
|
||||||
BUILD_STR=-q -a IA32 -a X64 -p UefiPayloadPkg/UefiPayloadPkg.dsc -t COREBOOT -b $(BUILD_TYPE) $(TIMEOUT) $(build_flavor)
|
BUILD_STR=-q -a IA32 -a X64 -p UefiPayloadPkg/UefiPayloadPkg.dsc -t COREBOOT -b $(BUILD_TYPE) $(TIMEOUT) $(build_flavor) $(CBMEM)
|
||||||
|
|
||||||
all: clean build
|
all: clean build
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user