Changeset 771b66b in rtems-testing


Ignore:
Timestamp:
May 4, 2010, 3:22:11 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
48d6c9d
Parents:
ec05843
Message:

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

  • bit_all_bsps: For 4.10 determine the list of BSPs on the fly.
Location:
rtems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems/ChangeLog

    rec05843 r771b66b  
     12010-05-04      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * bit_all_bsps: For 4.10 determine the list of BSPs on the fly.
     4
    152010-05-04      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • rtems/bit_all_bsps

    rec05843 r771b66b  
    4545mkdir ticker-executables
    4646
    47 # Now cycle through all the CPUs selected
    48 for CPU in ${CPUS}
    49 do
    50   #
    51   #  Try to build RTEMS
    52   #
    53 
    54   if [ "x${RTEMS}" != "x" ] ; then
    55 
    56     #
    57     #  Calculate the set of BSPs which could be built
    58     #
    59     #  Pick up the minimum set and then see if we are doing everything.
    60     #
    61 
     47#
     48#  Calculate the set of BSPs which could be built
     49#
     50#  Pick up the minimum set and then see if we are doing everything.
     51#
     52get_bsps()
     53{
     54  if [ -d ${RTEMS}/c/src/lib/libbsp/i386/pc386/make/custom ] ; then
     55    ALL_BSPS=`ls -1 ${RTEMS}/c/src/lib/libbsp/${CPU}/*/make/custom/*cfg | \
     56      while read f; do \
     57        basename $f; done | sed -e 's/.cfg$//' `
     58     
     59  else
     60    # RTEMS before 4.10
    6261    case $CPU in   
    6362      avr)     ALL_BSPS="avrtest" ;;
    6463      bfin)    ALL_BSPS="eZKit533 bf537Stamp" ;;
    6564      arm)     ALL_BSPS="csb336 csb337 csb637 edb7312 gba gp32 nds"
    66                ALL_BSPS="${ALL_BSPS} rtl22xx rtl22xx_t smdk2410"
    67                ALL_BSPS="${ALL_BSPS} lpc2478 gumstix" ;;
     65               ALL_BSPS="${ALL_BSPS} rtl22xx rtl22xx_t smdk2410"
     66               ALL_BSPS="${ALL_BSPS} lpc2478 gumstix" ;;
    6867      h8300)   ALL_BSPS="h8sim" ;;
    6968      i386)    ALL_BSPS="i386ex pc386 pc386dx pc486 pc586 pc686"
    70                ALL_BSPS="${ALL_BSPS} ts_386ex" ;;
     69               ALL_BSPS="${ALL_BSPS} ts_386ex" ;;
    7170      lm32)    ALL_BSPS="lm32_evr" ;;
    7271      m32c)    ALL_BSPS="m32csim" ;;
    7372      m32r)    ALL_BSPS="m32rsim" ;;
    7473      m68k)    ALL_BSPS="gen68360 gen68360_040 mvme136 mvme147 mvme147s"
    75                ALL_BSPS="${ALL_BSPS} mvme162 mvme162lx mvme167 ods68302"
    76                ALL_BSPS="${ALL_BSPS} sim68000 mcf5206elite "
    77                ALL_BSPS="${ALL_BSPS} uC5282 mcf52235 mcf5329"
    78                ALL_BSPS="${ALL_BSPS} gen68302 csb360 simcpu32 mrm332 av5282"
    79                ALL_BSPS="${ALL_BSPS} gen68340 mcf5235 idp pgh360"
    80                ALL_BSPS="${ALL_BSPS} m5484FireEngine" ;;
     74               ALL_BSPS="${ALL_BSPS} mvme162 mvme162lx mvme167 ods68302"
     75               ALL_BSPS="${ALL_BSPS} sim68000 mcf5206elite "
     76               ALL_BSPS="${ALL_BSPS} uC5282 mcf52235 mcf5329"
     77               ALL_BSPS="${ALL_BSPS} gen68302 csb360 simcpu32 mrm332 av5282"
     78               ALL_BSPS="${ALL_BSPS} gen68340 mcf5235 idp pgh360"
     79               ALL_BSPS="${ALL_BSPS} m5484FireEngine" ;;
    8180      mips)    ALL_BSPS="jmr3904 genmongoosev csb350 hurricane"
    82                ALL_BSPS="${ALL_BSPS} rbtx4925 rbtx4938" ;;
     81               ALL_BSPS="${ALL_BSPS} rbtx4925 rbtx4938" ;;
    8382      nios2)   ALL_BSPS="nios2_iss" ;;
    8483      powerpc) ALL_BSPS="psim score603e mcp750 mvme2100 mvme2307 mvme3100"
    85                ALL_BSPS="${ALL_BSPS} mpc8260ads ss555 mvme5500 ep1a"
    86                ALL_BSPS="${ALL_BSPS} pm520_cr825 pm520_ze30"
    87                ALL_BSPS="${ALL_BSPS} mbx821_001 mbx821_002 mbx821_002b"
    88                ALL_BSPS="${ALL_BSPS} mbx860_1b mbx860_001b mbx860_002"
    89                ALL_BSPS="${ALL_BSPS} mbx860_005b mtx603e brs5l icecube"
    90                ALL_BSPS="${ALL_BSPS} virtex mpc8349eamds hsc_cm01 haleakala"
    91                ALL_BSPS="${ALL_BSPS} mpc8313erdb mpc5566evb"
    92                ALL_BSPS="${ALL_BSPS} pghplus tqm8xx_stk8xx" ;;
     84               ALL_BSPS="${ALL_BSPS} mpc8260ads ss555 mvme5500 ep1a"
     85               ALL_BSPS="${ALL_BSPS} pm520_cr825 pm520_ze30"
     86               ALL_BSPS="${ALL_BSPS} mbx821_001 mbx821_002 mbx821_002b"
     87               ALL_BSPS="${ALL_BSPS} mbx860_1b mbx860_001b mbx860_002"
     88               ALL_BSPS="${ALL_BSPS} mbx860_005b mtx603e brs5l icecube"
     89               ALL_BSPS="${ALL_BSPS} virtex mpc8349eamds hsc_cm01 haleakala"
     90               ALL_BSPS="${ALL_BSPS} mpc8313erdb mpc5566evb"
     91               ALL_BSPS="${ALL_BSPS} pghplus tqm8xx_stk8xx" ;;
    9392      sh)      ALL_BSPS="gensh1 gensh2 gensh4"
    94                ALL_BSPS="${ALL_BSPS} simsh1 simsh2 simsh4" ;;
     93               ALL_BSPS="${ALL_BSPS} simsh1 simsh2 simsh4" ;;
    9594      sparc)   ALL_BSPS="sis erc32 leon2 leon3" ;;
    9695      tic4x)   ALL_BSPS="c3xsim c4xsim" ;;
    9796      unix)    ALL_BSPS="posix"
    9897
    99         supported=no
    100         # check to see if this host has a simulator port
    101         case `${RTEMS}/config.guess` in
    102           i[3456]86-pc-linux*)  supported=yes ;;
    103           sparc-sun-solaris*)   supported=yes ;;
    104           i[3456]86-*freebsd2*) supported=yes ;;
    105           *hpux*)
    106              echo "You are on a platform which needs to be tested".
    107              echo "HPUX has not been tested with the autoconf configuration."
    108              exit 0
    109              ;;
    110         esac
    111         ;;
     98        supported=no
     99        # check to see if this host has a simulator port
     100        case `${RTEMS}/config.guess` in
     101          i[3456]86-pc-linux*)  supported=yes ;;
     102          sparc-sun-solaris*)   supported=yes ;;
     103          i[3456]86-*freebsd2*) supported=yes ;;
     104          *hpux*)
     105             echo "You are on a platform which needs to be tested".
     106             echo "HPUX has not been tested with the autoconf configuration."
     107             exit 0
     108             ;;
     109        esac
     110        ;;
    112111      *)
    113         echo "UNKNOWN CPU ${CPU} -- add to bit_all"
    114         ;;
     112        echo "UNKNOWN CPU ${CPU} -- add to bit_all"
     113        ;;
    115114    esac
    116115
    117     if [ ${do_barebsps} = yes ] ; then
    118       case $CPU in
    119        i386)        ALL_BSPS="${ALL_BSPS} \
    120                       bare-i386_fp bare-i386_nofp bare-i486dx \
    121                       bare-i486sx bare-pentium" ;;
    122        m68k)        ALL_BSPS="${ALL_BSPS} \
    123                      bare-m68000 bare-m68020 bare-m68020nofp \
    124                      bare-m68040 bare-m68040nofp \
    125                      bare-m68060 bare-m68060nofp \
    126                      bare-m68302 bare-cpu32 bare-cpu32+ bare-m5200" ;;
    127        powerpc)     ALL_BSPS="${ALL_BSPS} bare-ppc403 bare-ppc603e" ;;
    128        sh)          ALL_BSPS="${ALL_BSPS} bare-sh7032" ;;
    129       esac
    130     fi
     116  fi
     117}
    131118
    132     #
    133     #  Decide to cycle over all the BSPs
    134     #
    135     if [ ${BSP} = "all" ] ; then
    136       BSPS_TO_TEST="${ALL_BSPS}"
    137     else
    138       BSPS_TO_TEST="${BSP}"
    139     fi
    140119
    141     if [ "X${BSPS_TO_TEST}" != "X" ] ; then
    142       for BSP_TO_TEST in ${BSPS_TO_TEST}
    143       do
    144         echo "Building RTEMS targetting ${CPU} for the ${BSP_TO_TEST} board"
    145         logfile=log/${CPU}-${BSP_TO_TEST}.log
    146         if [ ${verbose} = yes ] ; then
    147            echo "./bit_rtems $CPU $BSP_TO_TEST >${logfile} 2>&1"
    148         fi
    149         if [ ${testing} = no ] ; then
    150           BUILDDIR=build-${CPU}-${BSP_TO_TEST}-rtems
    151           ./bit_rtems $CPU $BSP_TO_TEST >${logfile} 2>&1
    152           # mv ${BUILDDIR}/${BSP_TO_TEST}/test*/*.log log 2>/dev/null
    153           du -s -k ${BUILDDIR}
    154           rm -rf ${BUILDDIR}
    155         fi
    156       done
    157     fi
     120# Now cycle through all the CPUs selected
     121for CPU in ${CPUS}
     122do
     123
     124
     125  #
     126  #  Decide to cycle over all the BSPs
     127  #
     128  if [ ${BSP} = "all" ] ; then
     129    get_bsps
     130    BSPS_TO_TEST="${ALL_BSPS}"
     131  else
     132    BSPS_TO_TEST="${BSP}"
     133  fi
     134
     135  if [ "X${BSPS_TO_TEST}" != "X" ] ; then
     136    for BSP_TO_TEST in ${BSPS_TO_TEST}
     137    do
     138      echo "Building RTEMS targetting ${CPU} for the ${BSP_TO_TEST} board"
     139      logfile=log/${CPU}-${BSP_TO_TEST}.log
     140      if [ ${verbose} = yes ] ; then
     141         echo "./bit_rtems $CPU $BSP_TO_TEST >${logfile} 2>&1"
     142      fi
     143      if [ ${testing} = no ] ; then
     144        BUILDDIR=build-${CPU}-${BSP_TO_TEST}-rtems
     145        ./bit_rtems $CPU $BSP_TO_TEST >${logfile} 2>&1
     146        mv ${BUILDDIR}/${BSP_TO_TEST}/test*/*.log log 2>/dev/null
     147        du -s -k ${BUILDDIR}
     148        rm -rf ${BUILDDIR}
     149      fi
     150    done
    158151  fi
    159152
Note: See TracChangeset for help on using the changeset viewer.