summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-21 03:24:29 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-21 03:24:29 +0100
commitc616930b71152c52b33b2e97fe43c3fc28ddeeec (patch)
tree80ed2953bf33b4f675c883dfa037f0d3a4868655
parentd1935c05902eebbe128fa7e5665bff83934d7920 (diff)
download/coreboot: remove unnecessary bloat
it is not necessary to have help output similarly, listing all boards in this script is pointless. why not just run ls -1 on the directory?
-rwxr-xr-xresources/scripts/download/coreboot32
1 files changed, 0 insertions, 32 deletions
diff --git a/resources/scripts/download/coreboot b/resources/scripts/download/coreboot
index 0092aecb..ccb407b3 100755
--- a/resources/scripts/download/coreboot
+++ b/resources/scripts/download/coreboot
@@ -31,19 +31,6 @@ cbcfgsdir="resources/coreboot"
main()
{
- if [ $# -eq 1 ] && [ "$1" = "--help" ] ; then
- usage
- exit 0
- elif [ $# -eq 1 ] && [ "$1" = "--list-boards" ] ; then
- list_supported_boards
- exit 0
- fi
-
- fetch_coreboot_trees $@
-}
-
-fetch_coreboot_trees()
-{
rm -f ${cbcfgsdir}/*/seen
printf "Downloading coreboot and (if available) applying patches\n"
@@ -186,23 +173,4 @@ prepare_new_coreboot_tree()
)
}
-usage()
-{
- progname="./download coreboot"
- printf "Usage:\n"
- printf "\t%s\t\t\t# Clone coreboot for all boards\n" "${progname}"
- printf "\t%s [board [board] ...] # Clone coreboot for given boards\n" \
- ${progname}
- printf "\t%s --list-boards\t# Prints this help\n" ${progname}
- printf "\t%s --help\t\t# List supported boards\n" ${progname}
- printf "\t%s --help\t\t# Prints this help\n" ${progname}
-}
-
-list_supported_boards()
-{
- for _board in "${cbcfgsdir}/"*; do
- echo ${_board} | sed 's#${cbcfgsdir}/##'
- done
-}
-
main $@