diff options
author | Leah Rowe <leah@libreboot.org> | 2023-05-20 19:40:31 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-05-20 19:40:31 +0100 |
commit | ec3d1006b3eef1d6f46d1bf2a2b21509b63c60b6 (patch) | |
tree | f33970244d6812e8b0b693ccd9b812e5ac6ee5b1 /resources | |
parent | e0b9766087b70f2766d0de5af44d21059dbbf705 (diff) |
build/release/roms: handle argument properly
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources')
-rwxr-xr-x | resources/scripts/build/release/roms | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/resources/scripts/build/release/roms b/resources/scripts/build/release/roms index 11b7b7bd..be93d597 100755 --- a/resources/scripts/build/release/roms +++ b/resources/scripts/build/release/roms @@ -40,7 +40,7 @@ main() init_check for romdir in bin/*; do - make_archive + make_archive "${romdir}" done printf "\nROM archives available at release/%s/roms/\n\n" "${version}" @@ -66,6 +66,7 @@ init_check() make_archive() { + romdir=${1} target="${romdir##*/}" echo ${target} @@ -89,7 +90,7 @@ make_archive() # remove ME/MRC/EC firmware from ROM images if [ "${CONFIG_HAVE_ME_BIN}" = "y" ] \ || [ "${target}" = "e6400nvidia_4mb" ]; then - purge_blobs + purge_blobs "${romdir}" fi printf "Generating release/%s/roms/%s-%s_%s.tar.xz\n" \ @@ -111,6 +112,8 @@ make_archive() purge_blobs() { + romdir=${1} + if [ ! -d coreboot/default ]; then ./download coreboot default || exit 1 fi |