Subversion Repositories svn.mios32

Rev

Rev 1986 | Rev 2535 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1986 Rev 2427
Line 1... Line 1...
1
# $Id: release.sh 1986 2014-05-03 21:30:22Z tk $
1
# $Id: release.sh 2427 2016-11-03 01:47:58Z tk $
2
2
3
if [[ "$1" == "" ]]; then
3
if [[ "$1" == "" ]]; then
4
  echo "SYNTAX: release.sh <release-directory>"
4
  echo "SYNTAX: release.sh <release-directory>"
5
  exit 1
5
  exit 1
6
fi
6
fi
Line 27... Line 27...
27
cp hwcfg/wilba/MBSEQ_HW.V4 $RELEASE_DIR/hwcfg/wilba
27
cp hwcfg/wilba/MBSEQ_HW.V4 $RELEASE_DIR/hwcfg/wilba
28
cp hwcfg/wilba_tpd/MBSEQ_HW.V4 $RELEASE_DIR/hwcfg/wilba_tpd
28
cp hwcfg/wilba_tpd/MBSEQ_HW.V4 $RELEASE_DIR/hwcfg/wilba_tpd
29
cp hwcfg/README.txt $RELEASE_DIR/hwcfg
29
cp hwcfg/README.txt $RELEASE_DIR/hwcfg
30
30
31
###############################################################################
31
###############################################################################
32
echo "Building for MBHP_CORE_STM32"
-
 
33
-
 
34
make cleanall
-
 
35
export MIOS32_FAMILY=STM32F10x
32
configs=( stm32f1 lpc17 stm32f4 )
36
export MIOS32_PROCESSOR=STM32F103RE
-
 
37
export MIOS32_BOARD=MBHP_CORE_STM32
-
 
38
export MIOS32_LCD=universal
33
for i in "${configs[@]}"; do
39
mkdir -p $RELEASE_DIR/MBHP_CORE_STM32
-
 
40
make > $RELEASE_DIR/MBHP_CORE_STM32/log.txt
-
 
41
cp project.hex $RELEASE_DIR/MBHP_CORE_STM32
-
 
42
-
 
43
###############################################################################
-
 
44
echo "Building for MBHP_CORE_LPC17"
34
  echo "Building for $i"
45
-
 
46
make cleanall
-
 
47
export MIOS32_FAMILY=LPC17xx
-
 
48
export MIOS32_PROCESSOR=LPC1769
-
 
49
export MIOS32_BOARD=MBHP_CORE_LPC17
-
 
50
export MIOS32_LCD=universal
-
 
51
mkdir -p $RELEASE_DIR/MBHP_CORE_LPC17
-
 
52
make > $RELEASE_DIR/MBHP_CORE_LPC17/log.txt
-
 
53
cp project.hex $RELEASE_DIR/MBHP_CORE_LPC17
35
  source ../../../../source_me_${i}
54
-
 
55
###############################################################################
-
 
56
echo "Building for MBHP_CORE_STM32F4"
-
 
57
-
 
58
make cleanall
36
  make cleanall
59
export MIOS32_FAMILY=STM32F4xx
-
 
60
export MIOS32_PROCESSOR=STM32F407VG
-
 
61
export MIOS32_BOARD=MBHP_CORE_STM32F4
-
 
62
export MIOS32_LCD=universal
-
 
63
mkdir -p $RELEASE_DIR/$MIOS32_BOARD
37
  mkdir -p $RELEASE_DIR/$MIOS32_BOARD
64
make > $RELEASE_DIR/$MIOS32_BOARD/log.txt
38
  make > $RELEASE_DIR/$MIOS32_BOARD/log.txt || exit 1
65
cp project.hex $RELEASE_DIR/$MIOS32_BOARD
39
  cp project.hex $RELEASE_DIR/$MIOS32_BOARD
-
 
40
done
66
41
67
###############################################################################
42
###############################################################################
68
make cleanall
43
make cleanall
69
echo "Done!"
44
echo "Done!"
70
45