diff options
author | Leah Rowe <leah@libreboot.org> | 2023-10-02 03:54:39 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-10-02 03:54:39 +0100 |
commit | 7ce3f93e4492e583f5a27eb5cc66648fd2044f34 (patch) | |
tree | 64524c4329e57e8deefe4e1386f8243b4c543839 /script/build/boot/roms_helper | |
parent | 7b02bb9aa6e533f30f25133caf9d214ca3d5bda2 (diff) |
build/boot/*: unify more logic in main()
slight sloccount reduction. light renaming of
functions between the two scripts, placing more
logic in main() under include/boot.sh
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/boot/roms_helper')
-rwxr-xr-x | script/build/boot/roms_helper | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/script/build/boot/roms_helper b/script/build/boot/roms_helper index 5685ef72..a3446334 100755 --- a/script/build/boot/roms_helper +++ b/script/build/boot/roms_helper @@ -32,16 +32,9 @@ eval "$(setvars "undefined" grub_scan_disk tree arch uboot_config)" # main() is in include/boot.sh -handle_targets() +check_target() { board="${boards%% *}" - configure_target - build_dependencies - build_target -} - -configure_target() -{ targetdir="${cfgsdir}/${board}" [ -d "${targetdir}" ] || \ @@ -102,7 +95,7 @@ configure_target() eval "payload_${_payload}=y" } -build_dependencies() +prepare_target() { romdir="bin/${board}" cbdir="coreboot/${board}" @@ -122,6 +115,7 @@ build_dependencies() build_dependency_grub build_dependency_uboot + build_target } build_dependency_seabios() |