diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-19 00:06:36 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-19 00:06:36 +0100 |
commit | 29a7123c0c5bbc6c8ecab4e58950040df7f1ccc4 (patch) | |
tree | 3e5c00c129804c794a5733eb86ad06265b94177b /script | |
parent | 2d6946775e88f9e804be0b8eb2f8827d07511218 (diff) |
roms: group some commands that are similar
this makes the build_payloads() function nicer to read
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-x | script/roms | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/script/roms b/script/roms index 969407c0..4cf36e38 100755 --- a/script/roms +++ b/script/roms @@ -138,16 +138,15 @@ build_payloads() cbrom="$cbdir/build/coreboot.rom" [ -f "$cbfstool" ] || x_ ./update trees -b coreboot utils $tree - [ "$payload_memtest" = "y" ] && x_ ./update trees -b memtest86plus - [ "$payload_seabios" = "y" ] && x_ ./update trees -b seabios + if [ "$payload_grub" = "y" ] || [ "$payload_seabios_withgrub" = "y" ] \ || [ "$payload_seabios_grubonly" = "y" ]; then [ -f "$grubelf" ] || x_ ./update trees -b grub $grubtree fi - [ "$payload_uboot" = "y" ] || return 0 + [ "$payload_uboot" = "y" ] || return 0 x_ ./update trees -b u-boot $board ubdir="elf/u-boot/$board/$uboot_config" ubootelf="$ubdir/u-boot.elf" && [ ! -f "$ubootelf" ] && \ |