aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios/os/hal/boards/genboard.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios/os/hal/boards/genboard.sh')
-rw-r--r--lib/chibios/os/hal/boards/genboard.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/chibios/os/hal/boards/genboard.sh b/lib/chibios/os/hal/boards/genboard.sh
new file mode 100644
index 000000000..8e8a1124c
--- /dev/null
+++ b/lib/chibios/os/hal/boards/genboard.sh
@@ -0,0 +1,17 @@
1#!/bin/bash
2if [ $# -eq 1 ]
3then
4 echo "Processing: $1"
5 if ! fmpp -q -C $1/cfg/board.fmpp
6 then
7 echo
8 echo "aborted"
9 exit 1
10 else
11 echo
12 echo "done"
13 exit 0
14 fi
15else
16 echo "Usage: genboard <board_directory>"
17fi