diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-20 01:15:06 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-20 01:15:06 +0100 |
commit | 808458ced5bcc5131d542e7e2fcb8120a613c8eb (patch) | |
tree | 395156e0d4d2658e0184c2a29077b39e579f8c82 /include/vendor.sh | |
parent | 4ab99d546e4b67e0394a2bb34c004c46d16ff893 (diff) |
minor code cleanup in the build system
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rwxr-xr-x | include/vendor.sh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/vendor.sh b/include/vendor.sh index 54dac191..31b50889 100755 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -36,10 +36,7 @@ vendor_download() _b="${board%%_*mb}" # shorthand (no duplication per rom size) detect_firmware && exit 0 - scan_config "$_b" "config/vendor" - - build_dependencies_download - download_vendorfiles + scan_config "$_b" "config/vendor" && bootstrap && getfiles } detect_firmware() @@ -68,7 +65,7 @@ detect_firmware() printf "Vendor files not needed for: %s\n" "$board" 1>&2 } -build_dependencies_download() +bootstrap() { [ -d "$cbdir" ] || x_ ./update trees -f coreboot ${cbdir##*/} for d in uefitool biosutilities bios_extract; do @@ -86,7 +83,7 @@ build_dependencies_download() x_ ./update trees -b coreboot utils $tree } -download_vendorfiles() +getfiles() { [ -z "$CONFIG_HAVE_ME_BIN" ] || fetch intel_me "$DL_url" \ "$DL_url_bkup" "$DL_hash" "$CONFIG_ME_BIN_PATH" |