Subversion Repositories svn.mios32

Rev

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

Rev 1942 Rev 2427
Line 1... Line 1...
1
# $Id: release.sh 1942 2014-01-26 21:25:53Z 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/MBHP_CORE_STM32
-
 
31
#make > $RELEASE_DIR/MBHP_CORE_STM32/log.txt
-
 
32
#cp project.hex $RELEASE_DIR/MBHP_CORE_STM32
-
 
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
-
 
39
export MIOS32_PROCESSOR=LPC1769
24
for i in "${configs[@]}"; do
40
export MIOS32_BOARD=MBHP_CORE_LPC17
-
 
41
export MIOS32_LCD=universal
25
  echo "Building for $i"
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/MBHP_CORE_STM32F4
28
  mkdir -p $RELEASE_DIR/$MIOS32_BOARD
55
make > $RELEASE_DIR/MBHP_CORE_STM32F4/log.txt
29
  make > $RELEASE_DIR/$MIOS32_BOARD/log.txt || exit 1
56
cp project.hex $RELEASE_DIR/MBHP_CORE_STM32F4
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!"