summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rwxr-xr-xresources/scripts/update/blobs/download5
2 files changed, 5 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 436984a9..5b12d32c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -39,7 +39,7 @@
/version
/versiondate
/blobs/app/
-/blobs/vendorupdate
+/blobs/cache/
*me.bin
/mrc/
/util/nvmutil/nvm
diff --git a/resources/scripts/update/blobs/download b/resources/scripts/update/blobs/download
index 7c775ea5..eebdf0a3 100755
--- a/resources/scripts/update/blobs/download
+++ b/resources/scripts/update/blobs/download
@@ -11,6 +11,7 @@ ec_hash=""
dl_hash=""
dl_url=""
dl_url_bkup=""
+dl_path=""
e6400_vga_dl_hash=""
e6400_vga_dl_url=""
e6400_vga_dl_url_bkup=""
@@ -21,7 +22,6 @@ cbdir="coreboot/default"
cbcfgsdir="resources/coreboot"
boarddir=""
blobdir="blobs"
-dl_path="${blobdir}/vendorupdate"
appdir="${blobdir}/app"
_7ztest="a"
mecleaner="$(pwd)/me_cleaner/me_cleaner.py"
@@ -431,6 +431,9 @@ fetch_update()
return 1
fi
+ dl_path=${blobdir}/cache/${dlsum}
+ mkdir -p ${blobdir}/cache
+
vendor_checksum ${dlsum} || \
wget ${dl} -O ${dl_path} || wget ${dl_bkup} -O ${dl_path}