Subversion Repositories svn.mios32

Rev

Rev 2535 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1265 tk 1
# $Id: release.sh 2626 2018-12-22 20:49:58Z tk $
2
 
3
if [[ "$1" == "" ]]; then
4
  echo "SYNTAX: release.sh <release-directory>"
5
  exit 1
6
fi
7
 
8
RELEASE_DIR=$1
9
 
10
if [[ -e $RELEASE_DIR ]]; then
11
  echo "ERROR: the release directory '$RELEASE_DIR' already exists!"
12
  exit 1
13
fi
14
 
15
###############################################################################
16
echo "Creating $RELEASE_DIR"
17
 
18
mkdir $RELEASE_DIR
19
cp README.txt $RELEASE_DIR
20
cp CHANGELOG.txt $RELEASE_DIR
21
 
22
mkdir -p $RELEASE_DIR/hwcfg/standard_v4
23
cp hwcfg/standard_v4/MBSEQ_HW.V4 $RELEASE_DIR/hwcfg/standard_v4
24
mkdir -p $RELEASE_DIR/hwcfg/tk
25
cp hwcfg/tk/MBSEQ_HW.V4 $RELEASE_DIR/hwcfg/tk
26
mkdir -p $RELEASE_DIR/hwcfg/wilba
27
cp hwcfg/wilba/MBSEQ_HW.V4 $RELEASE_DIR/hwcfg/wilba
2535 tk 28
mkdir -p $RELEASE_DIR/hwcfg/wilba_tpd
1882 tk 29
cp hwcfg/wilba_tpd/MBSEQ_HW.V4 $RELEASE_DIR/hwcfg/wilba_tpd
2626 tk 30
mkdir -p $RELEASE_DIR/hwcfg/midiphy_rh
31
cp hwcfg/midiphy_rh/MBSEQ_HW.V4 $RELEASE_DIR/hwcfg/midiphy_rh
32
mkdir -p $RELEASE_DIR/hwcfg/midiphy_lh
33
cp hwcfg/midiphy_lh/MBSEQ_HW.V4 $RELEASE_DIR/hwcfg/midiphy_lh
1265 tk 34
cp hwcfg/README.txt $RELEASE_DIR/hwcfg
35
 
36
###############################################################################
2427 tk 37
configs=( stm32f1 lpc17 stm32f4 )
38
for i in "${configs[@]}"; do
39
  echo "Building for $i"
40
  source ../../../../source_me_${i}
41
  make cleanall
42
  mkdir -p $RELEASE_DIR/$MIOS32_BOARD
43
  make > $RELEASE_DIR/$MIOS32_BOARD/log.txt || exit 1
44
  cp project.hex $RELEASE_DIR/$MIOS32_BOARD
45
done
1265 tk 46
 
47
###############################################################################
48
make cleanall
49
echo "Done!"
50