diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-02 14:56:34 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-02 14:56:34 +0000 |
commit | 7fb3c807170fe737294d521ad1c8654b6e069c49 (patch) | |
tree | 6a465b372e10a57d2c9d645ef8f7fcb6ff038598 /os/hal/boards/genboards.sh | |
parent | afbc92a7f789d0f1a747341a37c0e6f881f36085 (diff) | |
download | ChibiOS-7fb3c807170fe737294d521ad1c8654b6e069c49.tar.gz ChibiOS-7fb3c807170fe737294d521ad1c8654b6e069c49.tar.bz2 ChibiOS-7fb3c807170fe737294d521ad1c8654b6e069c49.zip |
Added command line board files generation tool. Regenerated all board files automatically.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11104 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/boards/genboards.sh')
-rw-r--r-- | os/hal/boards/genboards.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/os/hal/boards/genboards.sh b/os/hal/boards/genboards.sh new file mode 100644 index 000000000..91b6cc6ad --- /dev/null +++ b/os/hal/boards/genboards.sh @@ -0,0 +1,18 @@ +#!/bin/bash +if [ $# -eq 0 ] +then + find . -name board.fmpp -exec bash genboards.sh '{}' \; +elif [ $# -eq 1 ] +then + path=$(readlink -f $(dirname $1)) + echo "Processing: $1" + cd $path + if ! fmpp -q -C board.fmpp + then + echo + echo "aborted" + exit 1 + fi +else + echo "illegal number of arguments" +fi |