From 042c7877e91032c46220609c8e8ab9df2f109ee3 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 1 Jan 2024 17:52:23 +0000 Subject: build/roms: simplify seabios dependency check the update/trees script checks this binary itself, before deciding whether to recompile/compile, so we don't need to do such checks here. Signed-off-by: Leah Rowe --- script/build/roms | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'script') diff --git a/script/build/roms b/script/build/roms index 3f90d33b..6825ff00 100755 --- a/script/build/roms +++ b/script/build/roms @@ -132,22 +132,12 @@ configure_dependencies() [ "${payload_memtest}" != "y" ] || [ -f "src/${memtest_bin}" ] || \ x_ ./update trees -b memtest86plus - for bt in dependency_seabios grub_payload dependency_uboot target; do + [ "$payload_seabios" = "y" ] && x_ ./update trees -b seabios + for bt in grub_payload dependency_uboot target; do eval "build_${bt}" done } -build_dependency_seabios() -{ - [ "${payload_seabios}" = "y" ] || return 0 - [ -f "${seavgabiosrom}" ] && \ - [ -f elf/seabios/default/libgfxinit/bios.bin.elf ] && \ - [ -f elf/seabios/default/vgarom/bios.bin.elf ] && \ - [ -f elf/seabios/default/normal/bios.bin.elf ] && return 0 - - x_ ./update trees -b seabios -} - build_grub_payload() { [ "$payload_grub" != "y" ] && [ "$payload_seabios_withgrub" != "y" ] \ -- cgit v1.2.1