Subversion Repositories svn.mios32

Rev

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

Rev 1311 Rev 2427
Line 1... Line 1...
1
# $Id: release.sh 1311 2011-08-21 18:34:54Z 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
###############################################################################
-
 
23
configs=( lpc17 stm32f4 )
-
 
24
for i in "${configs[@]}"; do
35
echo "Building for MBHP_CORE_LPC17"
25
  echo "Building for $i"
36
-
 
-
 
26
  source ../../../../source_me_${i}
37
make cleanall
27
  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
28
  mkdir -p $RELEASE_DIR/$MIOS32_BOARD
43
make > $RELEASE_DIR/MBHP_CORE_LPC17/log.txt
29
  make > $RELEASE_DIR/$MIOS32_BOARD/log.txt || exit 1
44
cp project.hex $RELEASE_DIR/MBHP_CORE_LPC17
30
  cp project.hex $RELEASE_DIR/$MIOS32_BOARD
-
 
31
done
45
32
46
###############################################################################
33
###############################################################################
47
make cleanall
34
make cleanall
48
echo "Done!"
35
echo "Done!"