diff options
author | Leah Rowe <leah@libreboot.org> | 2024-07-17 19:06:53 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-07-17 19:06:53 +0100 |
commit | c6e6d96ce16b821b5e956d98715907fb9d8ae096 (patch) | |
tree | f38a0c8b1491bcf08e54db0b1df1db1ca8aba500 /include/rom.sh | |
parent | 78cdc56ae15b922a19cd6c71cec94ae62b6520c1 (diff) |
allow using coreboot's build system to add payload
lbmk must still define payloads, but specific configs
may use coreboot's build system instead.
you might use this to add your own config with, say,
tianocore payload, using coreboot.git to build it,
rather than using lbmk's choice of payloads.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/rom.sh')
-rw-r--r-- | include/rom.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/rom.sh b/include/rom.sh index 8798ef13..ed3dddf2 100644 --- a/include/rom.sh +++ b/include/rom.sh @@ -92,10 +92,13 @@ mkcorebootbin() [ "$payload_memtest" = "y" ] || payload_memtest="n" [ "$(uname -m)" = "x86_64" ] || payload_memtest="n" - - [ "$payload_seabios" = "y" ] && pname="seabios" && $dry add_seabios - [ "$payload_uboot" = "y" ] && pname="uboot" && $dry add_uboot - + if grep "CONFIG_PAYLOAD_NONE=y" "$defconfig"; then + [ "$payload_seabios" = "y" ] && pname="seabios" && \ + $dry add_seabios + [ "$payload_uboot" = "y" ] && pname="uboot" && $dry add_uboot + else + pname="custom" # coreboot's build system added payloads + fi newrom="bin/$target/${pname}_${target}_$initmode$displaymode.rom" $dry x_ mkdir -p "${newrom%/*}"; $dry x_ mv "$tmprom" "$newrom" |