diff options
author | Leah Rowe <leah@libreboot.org> | 2023-08-27 14:14:49 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-08-27 14:24:20 +0100 |
commit | 9457d6be52e5f409566dabc10dd5435102b2e760 (patch) | |
tree | 175385fc7d0922e0ea0a318a90d5e7f0a4731f56 /resources/scripts/update/blobs/inject | |
parent | 93d2dcad2d8b03eab613404e8c7c4209f250c70d (diff) |
unified list command for all scripts
e.g. ./build boot roms list
./update blobs inject listboards
./build boot list
./build clean list
also this is now possible:
./build list
or maybe
./update list
^ would list directories in resources/scripts/build
and resources/scripts/update respectively
this script is added:
resources/scripts/build/command/options
call it like so, e.g.
./build command options resources/coreboot
this script is now used, for list functions in
other scripts.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources/scripts/update/blobs/inject')
-rwxr-xr-x | resources/scripts/update/blobs/inject | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/resources/scripts/update/blobs/inject b/resources/scripts/update/blobs/inject index 3cdf38c6..bc6b55c9 100755 --- a/resources/scripts/update/blobs/inject +++ b/resources/scripts/update/blobs/inject @@ -44,7 +44,8 @@ main() sname="${0}" [ $# -lt 1 ] && err "No options specified." - [ "${1}" = "listboards" ] && listboards && exit 0 + [ "${1}" = "listboards" ] && \ + ./build command options resources/coreboot && exit 0 archive="${1}" @@ -345,16 +346,6 @@ modify_gbe() rm -f "${_gbe_tmp}" } -listboards() -{ - for boarddir in "${cbcfgsdir}"/*; do - [ -d "${boarddir}" ] || continue - board="${boarddir##${cbcfgsdir}/}" - board="${board%/}" - printf "%s\n" "${board##*/}" - done -} - usage() { cat <<- EOF |