summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
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"