summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-09-30 15:36:53 +0100
committerLeah Rowe <leah@libreboot.org>2023-09-30 15:36:53 +0100
commitd268f5eb28bc95b2d72bae022fce1768a5cb7147 (patch)
tree1a75624e288fb61ffae8169b7dd94a4b21d83a9b
parent7922b6e0e5b44655c2c59f535fbdf209126dcd3f (diff)
build/boot/roms: move usage() to include/boot.sh
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xinclude/boot.sh24
-rwxr-xr-xscript/build/boot/roms24
2 files changed, 24 insertions, 24 deletions
diff --git a/include/boot.sh b/include/boot.sh
index 526a6024..c8df74a5 100755
--- a/include/boot.sh
+++ b/include/boot.sh
@@ -39,3 +39,27 @@ main()
handle_targets
}
+
+usage()
+{
+ cat <<- EOF
+ USAGE: ./build boot roms target
+ To build *all* boards, do this: ./build boot roms all
+ To list *all* boards, do this: ./build boot roms list
+
+ Optional Flags:
+ -d: displaymode
+ -p: payload
+ -k: keyboard layout
+
+ Example commands:
+ ./build boot roms x60
+ ./build boot roms x200_8mb x60
+ ./build boot roms x60 -p grub -d corebootfb -k usqwerty
+
+ possible values for 'target':
+ $(listitems "config/coreboot")
+
+ Refer to the ${projectname} documentation for more information.
+ EOF
+}
diff --git a/script/build/boot/roms b/script/build/boot/roms
index 6f9e7467..d4261757 100755
--- a/script/build/boot/roms
+++ b/script/build/boot/roms
@@ -62,28 +62,4 @@ confirm_targets()
done
}
-usage()
-{
- cat <<- EOF
- USAGE: ./build boot roms target
- To build *all* boards, do this: ./build boot roms all
- To list *all* boards, do this: ./build boot roms list
-
- Optional Flags:
- -d: displaymode
- -p: payload
- -k: keyboard layout
-
- Example commands:
- ./build boot roms x60
- ./build boot roms x200_8mb x60
- ./build boot roms x60 -p grub -d corebootfb -k usqwerty
-
- possible values for 'target':
- $(listitems "config/coreboot")
-
- Refer to the ${projectname} documentation for more information.
- EOF
-}
-
main $@