source: rtems-testing/gcc/rundeja @ 288a6fb

4.11
Last change on this file since 288a6fb was 288a6fb, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 21, 2010 at 12:41:37 PM

2010-07-21 Vinu Rajashekhar <vinutheraj@…>

  • do_one, rundeja, test_driver: Add Go support. Plus some cleanup from Joel.
  • Property mode set to 100755
File size: 2.5 KB
Line 
1#! /bin/sh
2#
3#
4
5if [ $# -lt 2 ] ; then
6  echo USAGE: BSP COMPILER
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
114if [ $2 = gccgo ] ; then
115  RTEMS_MAKEFILE_PATH=${rtemsdir} \
116  SCRIPTDIR=${SCRIPTDIR} \
117    make -f ${SCRIPTDIR}/gcc/Makefile.rtems_gccgoinit
118  if [ $? -ne 0 ] ; then
119    echo unable to compile RTEMS GCC Go Init File
120    exit 1
121  fi
122  rtems_config=`pwd`/rtems_gccgo_init.o
123  make check-go RUNTESTFLAGS="\
124  SIM=${BSP_SIM} \
125  RTEMS_MAKEFILE_PATH=${rtemsdir} \
126  RTEMS_CONFIG_OBJ=${rtems_config} \
127  --target_board=rtems-${CPU}-${DEJABSP} \
128  "
129else
130  RTEMS_MAKEFILE_PATH=${rtemsdir} \
131  SCRIPTDIR=${SCRIPTDIR} \
132    make -f ${SCRIPTDIR}/gcc/Makefile.rtems_gccmain
133  if [ $? -ne 0 ] ; then
134    echo unable to compile RTEMS GCC Main
135    exit 1
136  fi
137  rtems_config=`pwd`/rtems_gcc_main.o
138  make check-gcc RUNTESTFLAGS="\
139  SIM=${BSP_SIM} \
140  RTEMS_MAKEFILE_PATH=${rtemsdir} \
141  RTEMS_CONFIG_OBJ=${rtems_config} \
142  --target_board=rtems-${CPU}-${DEJABSP} \
143  "
144fi
145# "execute.exp=pr206*"
146# vect.exp=vect*
147# powerpc.exp=405*
Note: See TracBrowser for help on using the repository browser.