Subversion Repositories svn.mios32

Rev

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

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