summaryrefslogtreecommitdiff
path: root/script/build/boot
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-30 12:41:41 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-30 12:41:41 +0100
commitb3e69cd9ac79b35ba59204ce0143efc8405b3c08 (patch)
treee82255f6ff332ed8ffce4debe4200e86e6b65232 /script/build/boot
parent385eb90c8cd31bfb770a950dd9252a30ccd6955d (diff)
build/boot/roms: move help() to bottom of file
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/boot')
-rwxr-xr-xscript/build/boot/roms14
1 files changed, 7 insertions, 7 deletions
diff --git a/script/build/boot/roms b/script/build/boot/roms
index 4b29f78f..53b4bf2d 100755
--- a/script/build/boot/roms
+++ b/script/build/boot/roms
@@ -64,6 +64,13 @@ main()
done
}
+# Build ROM images for supported boards
+buildrom() {
+ [ -d "config/coreboot/${1}/" ] || \
+ err "build/roms: target not defined: ${1}"
+ ./build boot roms_helper ${1}${opts} || return 1
+}
+
usage()
{
cat <<- EOF
@@ -88,11 +95,4 @@ usage()
EOF
}
-# Build ROM images for supported boards
-buildrom() {
- [ -d "config/coreboot/${1}/" ] || \
- err "build/roms: target not defined: ${1}"
- ./build boot roms_helper ${1}${opts} || return 1
-}
-
main $@