source: rtems-testing/gcc/rundeja @ a27c341

4.11
Last change on this file since a27c341 was a27c341, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 13, 2010 at 1:18:20 PM

2010-04-13 Joel Sherrill <joel.sherrill@…>

  • rundeja, test_driver: Add lm32. Do not attempt to update gcc source if update will ask for passphrase.
  • Property mode set to 100755
File size: 2.0 KB
Line 
1#! /bin/sh
2#
3#
4
5if [ $# -ne 1 ] ; then
6  echo USAGE: BSP
7  exit 1
8fi
9
10vfile=`dirname $0`/../VERSIONS
11if [ ! -r ${vfile} ] ; then
12  echo VERSIONS file not found
13  exit 1
14fi
15
16source ${vfile}
17
18case $1 in
19  eZKit533)
20    CPU=bfin
21    BSP=eZKit533
22    DEJABSP=nosim
23    BSP_SIM=nosim
24    ;;
25  edb7312)
26    CPU=arm
27    BSP=edb7312
28    DEJABSP=edb7312
29    BSP_SIM=edb7312
30    ;;
31  lm32_evr)
32    CPU=lm32
33    BSP=lm32_evr
34    DEJABSP=lm32_evr
35    BSP_SIM=lm32_evr
36    ;;
37  m32csim)
38    CPU=m32c
39    BSP=m32csim
40    DEJABSP=m32csim
41    BSP_SIM=m32csim
42    ;;
43  mcf5206elite)
44    CPU=m68k
45    BSP=mcf5206elite
46    DEJABSP=nosim
47    BSP_SIM=nosim
48    ;;
49  uC5282)
50    CPU=m68k
51    BSP=uC5282
52    DEJABSP=uC5282
53    BSP_SIM=uC5282
54    ;;
55  h8sim)
56    CPU=h8300
57    BSP=h8sim
58    DEJABSP=h8sim
59    BSP_SIM=h8sim
60    ;;
61  simsh1)
62    CPU=sh
63    BSP=simsh1
64    DEJABSP=simsh1
65    BSP_SIM=simsh
66    ;;
67  jmr3904)
68    CPU=mips
69    BSP=jmr3904
70    DEJABSP=jmr3904
71    BSP_SIM=jmr3904
72    ;;
73  sis)
74    CPU=sparc
75    BSP=sis
76    DEJABSP=sis
77    BSP_SIM=sis
78    ;;
79  psim)
80    CPU=powerpc
81    BSP=psim
82    DEJABSP=psim
83    BSP_SIM=psim
84    ;;
85  qemuppc)
86    CPU=powerpc
87    BSP=qemuppc
88    DEJABSP=qemuppc
89    BSP_SIM=qemuppc
90    ;;
91  qemu|pc386)
92    CPU=i386
93    BSP=pc386
94    DEJABSP=qemu
95    BSP_SIM=pc386
96    ;;
97  *)
98    echo UNKNOWN BSP
99    exit 1
100    ;;
101esac
102
103rtemsdir=${BSP_INSTALL}/${CPU}-rtems${RTEMS_VERSION}/${BSP}
104
105dfile=~/.dejagnurc
106if [ -r ${dfile} ] ; then
107  sed -e "s,^set boards_dir.*$,set boards_dir ${SCRIPTDIR}/dejagnu/boards," \
108     <${dfile} >XXX
109  mv XXX ${dfile}
110else
111  echo "set boards_dir ${SCRIPTDIR}/dejagnu/boards" >${dfile}
112fi
113
114RTEMS_MAKEFILE_PATH=${rtemsdir} \
115SCRIPTDIR=${SCRIPTDIR} \
116  make -f ${SCRIPTDIR}/gcc/Makefile.rtems_gccmain
117if [ $? -ne 0 ] ; then
118  echo unable to compile RTEMS GCC Main
119  exit 1
120fi
121rtems_config=`pwd`/rtems_gcc_main.o
122make check-gcc RUNTESTFLAGS="\
123SIM=${BSP_SIM} \
124RTEMS_MAKEFILE_PATH=${rtemsdir} \
125RTEMS_CONFIG_OBJ=${rtems_config} \
126--target_board=rtems-${CPU}-${DEJABSP} \
127"
128# "execute.exp=pr206*"
129# vect.exp=vect*
130# powerpc.exp=405*
Note: See TracBrowser for help on using the repository browser.