Changeset 7f5a415 in rtems-testing


Ignore:
Timestamp:
Jan 7, 2011, 10:59:25 PM (8 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
454a3d8
Parents:
d04ad1f
Message:

2011-01-07 Joel Sherrill <joel.sherrill@…>

  • gcc/do_one, gcc/testsuite/ada/acats/rtems_generate_acats_email: Detect RTEMS version.
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rd04ad1f r7f5a415  
     12011-01-07      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * gcc/do_one, gcc/testsuite/ada/acats/rtems_generate_acats_email:
     4        Detect RTEMS version.
     5
    162011-01-04      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • gcc/do_one

    rd04ad1f r7f5a415  
    3939  do_cxx=yes
    4040  do_multilib=yes
    41 # Build the Ada language cross compiler. Multilib is NOT supported
     41# Build the Ada language cross compiler.
    4242do_ada=no
    4343  do_ada_multilib=yes
     
    416416  ${GCCDIR}/configure \
    417417    ${NATIVE_GCC_EXTRA_ARGS} \
    418     --enable-languages=c${AdaArg} --prefix=$INSTALL &&
     418    --enable-languages=c,c++${AdaArg} --prefix=$INSTALL &&
    419419  make ${MAKEJOBS} && make install
    420420}
     
    624624}
    625625
     626ada_fail="no"
    626627if [ ${do_ada} = "yes" ] ; then
    627628  echo "Building Stage 2 cross Ada compiler for ${1} ..."
     
    630631   mkdir  b-gccada-${cpu} && \
    631632   cd b-gccada-${cpu} && \
    632    time j_gccada ${cpu} >${LOGDIR}/${cpu}-ada.log 2>&1 && cd ..) || exit 1
     633   time j_gccada ${cpu} >${LOGDIR}/${cpu}-ada.log 2>&1 && cd ..) || \
     634    ada_fail="yes"
    633635else
    634636  echo Skipping Stage 2 Ada for ${cpu}
     
    636638
    637639#### Run the Ada ACATS tests
    638 if [ ${run_acats} = "yes" -a -d b-gccada-${cpu} ] ; then
     640if [ ${run_acats} = "yes" -a \
     641     -d ${BASEDIR}/b-gccada-${cpu} -a ${ada_fail} = "no" ] ; then
    639642  echo "Running ACATS..."
    640643  cd ${GCCDIR}/gcc/testsuite/ada/acats/ || exit 1
     
    665668j_gccgo()
    666669{
     670set -x
    667671  if [ X${1} = X ] ; then
    668672    echo Usage: $0 TARGET_CPU
     
    699703     --with-gnu-ld --with-newlib  --verbose --with-system-zlib --disable-nls \
    700704     --enable-version-specific-runtime-libs \
    701     --enable-languages=c,go --target=$TARGET --prefix=$INSTALL &&
     705     --with-host-libstdcxx=-static-libstdc++ \
     706     --enable-languages=c,go --target=$TARGET --prefix=$INSTALL &&
    702707  make ${MAKEJOBS} &&
    703708  make install
    704709}
    705710
     711go_fail="no"
    706712if [ ${do_gccgo} = "yes" ] ; then
    707713  echo "Building Stage 2 cross GCC Go compiler for ${1} ..."
     
    710716   mkdir  b-gccgo1-${cpu} && \
    711717   cd b-gccgo1-${cpu} && \
    712    time j_gccgo ${cpu} >${LOGDIR}/${cpu}-go.log 2>&1 && cd ..) || exit 1
     718   time j_gccgo ${cpu} >${LOGDIR}/${cpu}-go.log 2>&1 && cd ..) || \
     719     go_fail="yes"
    713720else
    714721  echo Skipping GCC Go for ${cpu}
     
    716723
    717724##### Do the gccgo tests
    718 if [ ${do_gccgo} = "yes" -a ${run_gccgotests} = "yes" ] ; then
     725if [ ${run_acats} = "yes" -a \
     726     -d ${BASEDIR}/b-gccada-${cpu} -a ${ada_fail} = "no" ] ; then
     727if [ ${do_gccgo} = "yes"           -a ${run_gccgotests} = "yes" -a \
     728     -d ${BASEDIR}/b-gccgo1-${cpu} -a ${go_fail} = "no" ] ; then
    719729  echo "Running GCC Go Tests..."
    720730  cd ${BASEDIR}/b-gccgo1-${cpu}/gcc || exit 1
  • gcc/testsuite/ada/acats/rtems_generate_acats_email

    rd04ad1f r7f5a415  
    2121BSP=$2
    2222CPU=$1
    23 rtemsVersion=4.10
     23for v in 4.11 4.10 4.9 4.8 4.7 ""
     24do
     25  type ${CPU}-rtems${v}-gcc >/dev/null 2>&1
     26  if [ $? -eq 0 ] ; then
     27    rtemsVersion=${v}
     28    break
     29  fi
     30done
    2431Target=${CPU}-rtems${rtemsVersion}
    2532
Note: See TracChangeset for help on using the changeset viewer.