From 14b5947ed99b32774479350717f376385783a514 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 1 Apr 2023 11:13:04 +0100 Subject: blobutil/download: move Build_deps to the top It's called first, so declare it first! --- resources/scripts/blobs/download | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'resources') diff --git a/resources/scripts/blobs/download b/resources/scripts/blobs/download index f6b17279..a1defc14 100755 --- a/resources/scripts/blobs/download +++ b/resources/scripts/blobs/download @@ -13,6 +13,23 @@ Fail(){ exit 1 } +Build_deps(){ + if [ ! -d me_cleaner ]; then + printf "downloading me_cleaner\n" + ./download me_cleaner || Fail 'could not download me_cleaner' + fi + + if [ ! -d coreboot/default ]; then + printf "downloading coreboot\n" + ./download coreboot default || Fail 'could not download coreboot' + fi + + if [ ! -f "coreboot/default/util/ifdtool/ifdtool" ]; then + printf "building ifdtool from coreboot\n" + make -C coreboot/default/util/ifdtool || Fail 'could not build ifdtool' + fi +} + Download_needed(){ for need in ${needs}; do case ${need} in @@ -74,23 +91,6 @@ Extract_me(){ printf "Truncated and cleaned me output to ${_me_destination}\n" } -Build_deps(){ - if [ ! -d me_cleaner ]; then - printf "downloading me_cleaner\n" - ./download me_cleaner || Fail 'could not download me_cleaner' - fi - - if [ ! -d coreboot/default ]; then - printf "downloading coreboot\n" - ./download coreboot default || Fail 'could not download coreboot' - fi - - if [ ! -f "coreboot/default/util/ifdtool/ifdtool" ]; then - printf "building ifdtool from coreboot\n" - make -C coreboot/default/util/ifdtool || Fail 'could not build ifdtool' - fi -} - set -- "resources/coreboot/${board}/config/*" . ${1} 2>/dev/null . "resources/coreboot/${board}/board.cfg" -- cgit v1.2.1