Maximilian Brune has uploaded this change for review.

View Change

payloads/Kconfig: Add flat binary as payload option

This add another choice option for adding a flat binary instead of an
ELF or some other payload. It keeps the IS_PAYLOAD_FLAT_BINARY hidden in
the menuconfig because it is generally not configurable but dependend on
the payload you selected.
The patch also guards the PAYLOAD_OPTIONS option since it usually only
makes sense to configure it if the payload is a flat binary.

Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: If775e0846f9a5631da3fc103bdd9e6aea0be879a
---
M payloads/Kconfig
1 file changed, 9 insertions(+), 4 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/80191/1
diff --git a/payloads/Kconfig b/payloads/Kconfig
index 9304629..8990aa3 100644
--- a/payloads/Kconfig
+++ b/payloads/Kconfig
@@ -38,6 +38,13 @@
You will be able to specify the location and file name of the
payload image later.

+config PAYLOAD_FLAT_BINARY
+ bool "Payload is a flat binary"
+ select PAYLOAD_IS_FLAT_BINARY
+ help
+ Add the payload to cbfs as a flat binary type instead of as an
+ elf payload
+
source "payloads/external/*/Kconfig.name"

endchoice
@@ -82,15 +89,13 @@
config PAYLOAD_OPTIONS
string "Additional cbfstool options"
default ""
+ depends on PAYLOAD_IS_FLAT_BINARY
help
Additional cbfstool options for the payload

config PAYLOAD_IS_FLAT_BINARY
- bool "Payload is a flat binary"
+ bool
default n
- help
- Add the payload to cbfs as a flat binary type instead of as an
- elf payload

config PAYLOAD_FIT_SUPPORT
bool "FIT support"

To view, visit change 80191. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: If775e0846f9a5631da3fc103bdd9e6aea0be879a
Gerrit-Change-Number: 80191
Gerrit-PatchSet: 1
Gerrit-Owner: Maximilian Brune <maximilian.brune@9elements.com>
Gerrit-MessageType: newchange