Subversion Repositories svn.mios32

Rev

Rev 1952 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1952 Rev 2427
Line 1... Line 1...
1
# $Id: release.sh 1952 2014-01-28 22:42:11Z 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 18... Line 18...
18
mkdir $RELEASE_DIR
18
mkdir $RELEASE_DIR
19
cp README.txt $RELEASE_DIR
19
cp README.txt $RELEASE_DIR
20
#cp CHANGELOG.txt $RELEASE_DIR
20
#cp CHANGELOG.txt $RELEASE_DIR
21
21
22
###############################################################################
22
###############################################################################
23
echo "Building for MBHP_CORE_STM32"
-
 
24
-
 
25
make cleanall
-
 
26
export MIOS32_FAMILY=STM32F10x
23
configs=( stm32f1 lpc17 stm32f4 )
27
export MIOS32_PROCESSOR=STM32F103RE
-
 
28
export MIOS32_BOARD=MBHP_CORE_STM32
-
 
29
export MIOS32_LCD=universal
24
for i in "${configs[@]}"; do
30
mkdir -p $RELEASE_DIR/MBHP_CORE_STM32
-
 
31
make > $RELEASE_DIR/MBHP_CORE_STM32/log.txt
-
 
32
cp project.hex $RELEASE_DIR/MBHP_CORE_STM32
-
 
33
-
 
34
###############################################################################
-
 
35
echo "Building for MBHP_CORE_LPC17"
25
  echo "Building for $i"
36
-
 
37
make cleanall
-
 
38
export MIOS32_FAMILY=LPC17xx
-
 
39
export MIOS32_PROCESSOR=LPC1769
-
 
40
export MIOS32_BOARD=MBHP_CORE_LPC17
-
 
41
export MIOS32_LCD=universal
-
 
42
mkdir -p $RELEASE_DIR/MBHP_CORE_LPC17
-
 
43
make > $RELEASE_DIR/MBHP_CORE_LPC17/log.txt
-
 
44
cp project.hex $RELEASE_DIR/MBHP_CORE_LPC17
26
  source ../../../../source_me_${i}
45
-
 
46
###############################################################################
-
 
47
echo "Building for MBHP_CORE_STM32F4"
-
 
48
-
 
49
make cleanall
27
  make cleanall
50
export MIOS32_FAMILY=STM32F4xx
-
 
51
export MIOS32_PROCESSOR=STM32F407VG
-
 
52
export MIOS32_BOARD=MBHP_CORE_STM32F4
-
 
53
export MIOS32_LCD=universal
-
 
54
mkdir -p $RELEASE_DIR/$MIOS32_BOARD
28
  mkdir -p $RELEASE_DIR/$MIOS32_BOARD
55
make > $RELEASE_DIR/$MIOS32_BOARD/log.txt
29
  make > $RELEASE_DIR/$MIOS32_BOARD/log.txt || exit 1
56
cp project.hex $RELEASE_DIR/$MIOS32_BOARD
30
  cp project.hex $RELEASE_DIR/$MIOS32_BOARD
-
 
31
done
57
32
58
###############################################################################
33
###############################################################################
59
make cleanall
34
make cleanall
60
echo "Done!"
35
echo "Done!"