Attention is currently required from: Stefan Reinauer.
Martin L Roth has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/75109 )
Change subject: payloads depthcharge: Add additional depthcharge files ......................................................................
payloads depthcharge: Add additional depthcharge files
Besides the depthcharge payload, some additional files are needed to make everything work. These include the font file, the graphics binary, the locale list, and the localization files for any locales supported.
This change allows those files to be automatically added. The default path is 3rdparty/blobs/mainboard/[VENDOR/BOARDNAME]/depthcharge.
These files can be extracted from a chromeos firmware image.
Signed-off-by: Martin Roth gaumless@gmail.com Change-Id: I20aecc37a6ffcecb095b192d0b955e8ec78688ab --- M payloads/external/Makefile.inc M payloads/external/depthcharge/Kconfig 2 files changed, 44 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/75109/1
diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc index d10cb15..8cdbe31 100644 --- a/payloads/external/Makefile.inc +++ b/payloads/external/Makefile.inc @@ -17,7 +17,13 @@ else BOARD=$(CONFIG_MAINBOARD_DEPTHCHARGE) endif -#TODO: Figure out version +endif + +ifeq ($(CONFIG_ADD_DEPTHCHARGE_FILES),y) + $(foreach dpfile, $(wildcard $(call strip_quotes,$(CONFIG_DEPTHCHARGE_FILE_PATH))/*), \ + $(call add-cbfs-file-simple, $(notdir $(dpfile)), $(dpfile), raw, lzma ) \ + $(info Should be adding $(dpfile)) \ + ) endif
ifeq ($(CONFIG_PAYLOAD_LINUX)$(CONFIG_PAYLOAD_LINUXBOOT),y) diff --git a/payloads/external/depthcharge/Kconfig b/payloads/external/depthcharge/Kconfig index 89c81ef..f2c42a4 100644 --- a/payloads/external/depthcharge/Kconfig +++ b/payloads/external/depthcharge/Kconfig @@ -49,3 +49,21 @@ if the defaults in defconfig are sufficient for your system.
endif + +config ADD_DEPTHCHARGE_FILES + bool "Add additional depthcharge files" + depends on PAYLOAD_DEPTHCHARGE || PAYLOAD_ELF + default n + help + Depthcharge needs some additional files to display its correctly. + These include font.bin, locale_xx.bin, locales, and vbgfx.bin. + The files may be extracted from an appropriate chromeos image.S + +config DEPTHCHARGE_FILE_PATH + string "Path to depthcharge files" + depends on ADD_DEPTHCHARGE_FILES + default "3rdparty/blobs/mainboard/$(MAINBOARDDIR)/depthcharge" + help + Location of the files to add. + + NOTE: All files in this directory will be added to cbfs.