aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/boards/genboards.sh
blob: 91b6cc6ad4c54dff33a6f5a0538a4272375cd1fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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