summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-04-01 11:13:04 +0100
committerLeah Rowe <leah@libreboot.org>2023-04-01 11:13:04 +0100
commit14b5947ed99b32774479350717f376385783a514 (patch)
treed63926f0c46fce7007cfc1a4327bf004783f2253 /resources
parent7f3c0ca81e8e769d6f5f3578e34a153c15b858ac (diff)
blobutil/download: move Build_deps to the top
It's called first, so declare it first!
Diffstat (limited to 'resources')
-rwxr-xr-xresources/scripts/blobs/download34
1 files changed, 17 insertions, 17 deletions
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"