Maximilian Brune has uploaded this change for review.

View Change

payloads/Kconfig: Make flat-binary configurable

This adds the ability to add a flat-binary using menuconfig.

Test: boot hifive-unmatched mainboard with the following config:
CONFIG_PAYLOAD_NONE=n
CONFIG_PAYLOAD_ELF=y
CONFIG_PAYLOAD_FILE="~/repos/linux-riscv/arch/riscv/boot/Image"
CONFIG_PAYLOAD_IS_FLAT_BINARY=y
CONFIG_PAYLOAD_OPTIONS="-l 0x82000000 -e 0x82000000"
CONFIG_COMPRESSED_PAYLOAD_LZMA=y

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

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/50/79950/1
diff --git a/payloads/Kconfig b/payloads/Kconfig
index 2a2773a..9304629 100644
--- a/payloads/Kconfig
+++ b/payloads/Kconfig
@@ -80,13 +80,14 @@
endchoice

config PAYLOAD_OPTIONS
- string
+ string "Additional cbfstool options"
default ""
help
Additional cbfstool options for the payload

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

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

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