summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaximilian Brune <maximilian.brune@9elements.com>2024-01-14 19:08:06 +0600
committerLean Sheng Tan <sheng.tan@9elements.com>2024-01-26 19:16:45 +0000
commit0825d904670ca1a5e5801649b574ce2742dc23f0 (patch)
treeb7b084280f1822952bc00a0e9163bfc22f713627
parent054b84294ef5e66c9ade39bccb14f6627bed24c2 (diff)
downloadcoreboot-0825d904670ca1a5e5801649b574ce2742dc23f0.tar.gz
coreboot-0825d904670ca1a5e5801649b574ce2742dc23f0.tar.bz2
coreboot-0825d904670ca1a5e5801649b574ce2742dc23f0.zip
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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79950 Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--payloads/Kconfig5
1 files changed, 3 insertions, 2 deletions
diff --git a/payloads/Kconfig b/payloads/Kconfig
index 2a2773a2188f..93046298842d 100644
--- a/payloads/Kconfig
+++ b/payloads/Kconfig
@@ -80,13 +80,14 @@ config COMPRESSED_PAYLOAD_LZ4
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