diff options
author | Leah Rowe <leah@libreboot.org> | 2024-01-01 22:11:29 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-01-01 22:36:55 +0000 |
commit | f5b04fa505d60384fc090682a24438a3e52db640 (patch) | |
tree | a53104bf4008387a353b89cfbae17572fb922788 /script/build | |
parent | 0b0812182989b4df540b29f91c5fc7af8d19b12c (diff) |
build/roms: tidy up payload configuration handling
the eval for loop is overkill
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build')
-rwxr-xr-x | script/build/roms | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/script/build/roms b/script/build/roms index 422a1135..a369d0e8 100755 --- a/script/build/roms +++ b/script/build/roms @@ -133,16 +133,14 @@ build_payloads() x_ ./update trees -b memtest86plus [ "$payload_seabios" = "y" ] && x_ ./update trees -b seabios - for bt in grub_payload uboot_payload; do - eval "build_${bt}" - done + if [ "$payload_grub" = "y" ] || [ "$payload_seabios_withgrub" = "y" ] \ + || [ "$payload_seabios_grubonly" = "y" ]; then build_grub_payload + fi + [ "${payload_uboot}" = "y" ] && build_uboot_payload; return 0 } build_grub_payload() { - [ "$payload_grub" != "y" ] && [ "$payload_seabios_withgrub" != "y" ] \ - && [ "${payload_seabios_grubonly}" != "y" ] && return 0 - x_ mkdir -p elf/grub for keymapfile in config/grub/keymap/*.gkb; do @@ -185,8 +183,6 @@ build_grub_payload() build_uboot_payload() { - [ "${payload_uboot}" = "y" ] || return 0 - x_ ./update trees -b u-boot ${board} ubdir="elf/u-boot/${board}/${uboot_config}" ubootelf="${ubdir}/u-boot.elf" |