Skip to content
Snippets Groups Projects
Commit 8bb3730e authored by Libreboot project's avatar Libreboot project Committed by Leah Rowe
Browse files

cache downloaded files(module) to cache/file/HASH


lib.sh download() is used by subfile handling in git.sh,
e.g. crossgcc tarballs.

they are not currently cached, but are downloaded directly
in place.

cache them, under cache/file/, saved with the name equal
to the checksum, so: cache/file/CHECKSUM

if the given cached file exists, use it as-is for simple
copy, instead of curl. this avoids re-downloading a lot of
crossgcc tarballs, where different coreboot trees may use
some archives that are the same throughout.

Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
parent 0d55d7b2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment