source: rtems-testing/rtems/bit_rtems @ 4813bac

4.11
Last change on this file since 4813bac was 5e5439a, checked in by Joel Sherrill <joel.sherrill@…>, on May 2, 2014 at 9:28:39 PM

bit_rtems: Add SMP and keep going support

  • Property mode set to 100755
File size: 17.1 KB
Line 
1#! /bin/sh
2#
3#  Shell script to configure and build rtems
4#
5#  build-${CPU}-rtems is created as the build tree
6#
7
8usage()
9{
10  echo "usage: $0 CPU [BSP]"
11  print_rtems_cpus
12}
13
14my_exit()
15{
16  exit $0
17}
18
19#if [ $# -ne 1 ]; then
20#  usage
21#  exit 1
22#fi
23
24CPU=$1
25shift
26if [ $# -eq 1 ] ; then
27  BSP_ARG=$1
28  BSP_TO_TEST=$1
29  shift
30fi
31
32args=$*
33
34# The argument to the "--target" argument of configure.
35BUILD_PIECE=rtems
36
37# Include shared setup
38if [ ! -r ./common.sh ] ; then
39  echo "Cannot find shared shell script support (common.sh)"
40  exit 1
41fi
42. `echo $0 | sed -e 's/bit_rtems/common.sh/'`
43
44# Include user configurable information
45test -r ./user.cfg || \
46  check_fatal 1 "Cannot find user configuration (user.cfg)"
47. ./user.cfg
48
49# Now set some internal variables based on the user configuration
50verbose=yes
51testing=no
52if [ "X${INSTALL_RTEMS}" = "Xno" ] ; then
53  do_install=no
54else
55  do_install=yes
56fi
57
58export PATH=$PATH:${INSTALL_POINT}/bin
59echo $PATH
60
61#
62# Remove the build directory
63#
64BUILDDIR=build-${CPU}-${BSP_TO_TEST}-rtems
65echo "Removing build directory ${BUILDDIR} ..."
66if [ ${testing} = no ] ; then
67  rm -rf ${BUILDDIR}
68  mkdir ${BUILDDIR}
69  cd ${BUILDDIR}
70fi
71
72#
73# Configure_rtems
74#
75
76conf_rtems()
77{
78echo "../${RTEMS}/configure $* ${BARE_CPU}${BARE_MODEL_ARG} \
79    ${BARE_CFLAGS}${BARE_CFLAGS_ARG}"
80if [ ${testing} = no ] ; then
81  if [ "X${BARE_MODEL_ARG}" != "X" ] ; then
82    ../${RTEMS}/configure $* ${BARE_CPU}"${BARE_MODEL_ARG}" \
83      ${BARE_CFLAGS}"${BARE_CFLAGS_ARG}"
84  else
85    ../${RTEMS}/configure $*
86  fi
87else
88  echo "In test mode: Not actually configuring"
89echo
90fi
91
92if [ $? -eq 0 ] ; then
93  echo "${BUILDDIR} has been successfully prepared"
94else
95  echo "Could not successfully configure into ${BUILDDIR}!"
96  exit 1
97fi
98
99}
100
101# enable-gcc28
102# --enable-libcdir=${INSTALL_POINT}
103
104doing_bare_bsp=no
105if [ x${BSP_TO_TEST} != x ] ; then
106 
107  if [ `echo ${BSP_TO_TEST} | cut -d'-' -f1` != bare ]; then
108    ENABLE_BSP=--enable-rtemsbsp="${BSP_TO_TEST}"
109    case ${BSP_TO_TEST} in
110      all) ;;
111      multilib) ENABLE_BSP="--enable-multilib" ;;
112      bf537Stamp) ENABLE_BSP="${ENABLE_BSP} BFIN_ON_SKYEYE=1" ;;
113      eZKit533)   ENABLE_BSP="${ENABLE_BSP} BFIN_ON_SKYEYE=1"   ;;
114      edb7312)    ENABLE_BSP="${ENABLE_BSP} ON_SKYEYE=1" ;;
115      gumstix)    ENABLE_BSP="${ENABLE_BSP} ON_SKYEYE=1" ;;
116      lm32_evr)   ENABLE_BSP="${ENABLE_BSP} ON_SIMULATOR=1" ;;
117      csb637)
118         ENABLE_BSP="${ENABLE_BSP} ENABLE_LCD=1"
119         ENABLE_BSP="${ENABLE_BSP} ENABLE_LCD_MIRRORING=1"
120         ;;
121      qemu)
122         ENABLE_BSP="--enable-rtemsbsp=pc386"
123         ENABLE_BSP="${ENABLE_BSP} USE_COM1_AS_CONSOLE=1"
124         ENABLE_BSP="${ENABLE_BSP} BSP_PRESS_KEY_FOR_RESET=0"
125         BSP_TO_TEST=pc386
126         ;;
127      psim | *qemu)
128         ENABLE_BSP="${ENABLE_BSP} CLOCK_DRIVER_USE_FAST_IDLE=1"
129         ;;
130      #pc386)
131      #   ENABLE_BSP="--enable-rtemsbsp=pc386"
132      #   ENABLE_BSP="${ENABLE_BSP} USE_COM1_AS_CONSOLE=1"
133      #   ENABLE_BSP="${ENABLE_BSP} IDE_USE_SECONDARY_INTERFACE=1"
134      #   ENABLE_BSP="${ENABLE_BSP} BSP_VIDEO_80x50=1"
135      #   ;;
136      pc386) ENABLE_BSP="--enable-rtemsbsp=pc386 BSP_VIDEO_80x50=1" ;;
137      # sis) ENABLE_BSP="${ENABLE_BSP} CONSOLE_USE_INTERRUPTS=1" ;;
138      *)     ENABLE_BSP=--enable-rtemsbsp="${BSP_TO_TEST}" ;;
139    esac
140
141  else
142    doing_bare_bsp=yes
143    ENABLE_BSP=--enable-rtemsbsp="bare"
144    BARE_CPU="--enable-bare-cpu-model="
145    BARE_CFLAGS="--enable-bare-cpu-cflags="
146    case ${BSP_TO_TEST} in
147       # Hitachi SH family
148         bare-sh7032)
149           BARE_MODEL_ARG=sh7032
150           BARE_CFLAGS_ARG="-Wall -m1 -DMHZ=20 -DCPU_CONSOLE_DEVNAME="\\\"/dev/null\\\"""
151           ;;
152
153       # Intel i386 family
154         bare-i386_fp)
155           BARE_MODEL_ARG=i386_fp
156           BARE_CFLAGS_ARG="-m386"
157           ;;
158         bare-i386_nofp)
159           BARE_MODEL_ARG=i386_nofp
160           BARE_CFLAGS_ARG="-m386 -msoft-float"
161           ;;
162         bare-i486dx)
163           BARE_MODEL_ARG=i486dx
164           BARE_CFLAGS_ARG="-m486"
165           ;;
166         bare-i486sx)
167           BARE_MODEL_ARG=i486sx
168           BARE_CFLAGS_ARG="-m486 -msoft-float"
169           ;;
170         bare-pentium)
171           BARE_MODEL_ARG=pentium
172           BARE_CFLAGS_ARG="-mpentium"
173           ;;
174       
175       # Motorola m68xxx and Coldfire family
176         bare-m68000)
177           BARE_MODEL_ARG=m68000
178           BARE_CFLAGS_ARG="-m68000 -msoft-float"
179           ;;
180         bare-m68020)
181           BARE_MODEL_ARG=m68020
182           BARE_CFLAGS_ARG="-m68020"
183           ;;
184         bare-m68020nofp)
185           BARE_MODEL_ARG=m68020
186           BARE_CFLAGS_ARG="-m68020 -msoft-float"
187           ;;
188         bare-m68040)
189           BARE_MODEL_ARG=m68040
190           BARE_CFLAGS_ARG="-m68040"
191           ;;
192         bare-m68040nofp)
193           BARE_MODEL_ARG=m68040
194           BARE_CFLAGS_ARG="-m68040 -msoft-float"
195           ;;
196         bare-m68060)
197           BARE_MODEL_ARG=m68060
198           BARE_CFLAGS_ARG="-m68060"
199           ;;
200         bare-m68060nofp)
201           BARE_MODEL_ARG=m68060
202           BARE_CFLAGS_ARG="-m68060 -msoft-float"
203           ;;
204         bare-m68302)
205           BARE_MODEL_ARG=m68302
206           BARE_CFLAGS_ARG="-m68302 -msoft-float"
207           ;;
208         bare-cpu32)
209           BARE_MODEL_ARG=cpu32
210           BARE_CFLAGS_ARG="-mcpu32"
211           ;;
212         bare-cpu32+)
213           BARE_MODEL_ARG=cpu32+
214           BARE_CFLAGS_ARG="-mcpu32 -DRTEMS__mcpu32p__"
215           ;;
216         bare-m5200)
217           BARE_MODEL_ARG=m5200
218           BARE_CFLAGS_ARG="-m5200"
219           ;;
220
221       # Motorola PowerPC Family
222         bare-ppc403)
223           BARE_MODEL_ARG=ppc403
224           BARE_CFLAGS_ARG="-mcpu=403"
225           ;;
226         bare-ppc603e)
227           BARE_MODEL_ARG=ppc603e
228           BARE_CFLAGS_ARG="-m60e"
229           ;;
230
231       # ARM Family
232         bare-arm9tdmi)
233           BARE_MODEL_ARG=arm9tdmi
234           BARE_CFLAGS_ARG="-mcpu=arm9tdmi"
235           ;;
236
237       # Unknown CPU family
238         *)
239           echo This script does not know how to build ${BSP_TO_TEST} yet.
240           echo
241           usage
242           exit 1
243           ;;
244    esac
245    BSP_TO_TEST=bare
246  fi
247fi
248
249#
250#  Convert user.cfg variables into RTEMS configuration options
251#
252
253case ${ENABLE_RTEMS_TESTS} in
254  samples) RTEMS_TESTS_FLAG="--enable-tests=samples" ;;
255  yes)     RTEMS_TESTS_FLAG="--enable-tests" ;;
256  *)       RTEMS_TESTS_FLAG="--disable-tests" ;;
257esac
258 
259if [ ${ENABLE_BSP_DIRTY_MEMORY} = yes ] ; then
260 # Not all BSPs support this
261 ENABLE_BSP="${ENABLE_BSP} BSP_DIRTY_MEMORY=1"
262fi
263
264if [ ${ENABLE_RTEMS_TCPIP} = yes ] ; then
265  case ${CPU} in
266    avr) TCPIP_FLAG="--disable-networking" ;;
267    *)   TCPIP_FLAG="--enable-networking" ;;
268  esac
269else
270  TCPIP_FLAG="--disable-networking"
271fi
272
273#    --disable-rtems-inlines
274if [ x${DISABLE_INLINES} = xyes ] ; then
275  DISABLE_INLINES_FLAG="--disable-rtems-inlines"
276fi
277
278if [ ${ENABLE_RTEMS_POSIX} = yes ] ; then
279  POSIX_FLAG="--enable-posix"
280else
281  POSIX_FLAG="--disable-posix"
282fi
283
284if [ ${ENABLE_RTEMS_SMP} = yes ] ; then
285  SMP_FLAG="--enable-smp"
286else
287  SMP_FLAG="--disable-smp"
288fi
289
290if [ ${ENABLE_RTEMS_ITRON} = yes ] ; then
291  ITRON_FLAG="--enable-itron"
292else
293  ITRON_FLAG="--disable-itron"
294fi
295
296ADA_FLAG="--disable-ada"
297ADA_TESTS_FLAG="--disable-expada"
298case ${target} in
299  sparc*|powerpc*|i386*)
300    if [ ${ENABLE_RTEMS_ADA} = yes ] ; then
301      ADA_FLAG="--enable-ada"
302    fi
303
304    if [ ${ENABLE_RTEMS_ADA_TESTS} = yes ] ; then
305      ADA_TESTS_FLAG="--enable-expada"
306    fi
307    ;;
308  *)
309    ;;
310esac
311
312# Only a few BSPs really support MP
313if [ ${ENABLE_RTEMS_MP} = yes ] ; then
314  case ${BSP_TO_TEST} in
315    simhppa|cvme961|mvme136|mvme147s|psim|posix|multilib|leon3)
316      ENABLE_MP_FLAG="--enable-multiprocessing"
317      ;;
318    *)
319      echo "AUTOMATICALLY DISABLING MULTIPROCESSING!!!"
320      ENABLE_MP_FLAG="--disable-multiprocessing"
321      ;;
322  esac
323else
324  ENABLE_MP_FLAG="--disable-multiprocessing"
325fi
326
327# Some CPUs do not have C++ support
328if [ ${ENABLE_RTEMS_CXX} = yes ] ; then
329  case ${CPU} in
330    avr|bfin|m32c|m32r|tic4x)
331       ENABLE_RTEMS_CXX="--disable-cxx" ;;
332    *) ENABLE_RTEMS_CXX="--enable-cxx" ;;
333  esac
334else
335  ENABLE_RTEMS_CXX="--disable-cxx"
336fi
337
338if [ ${ENABLE_RTEMS_RDBG} = yes ] ; then
339  ENABLE_RTEMS_RDBG="--enable-rdbg"
340else
341  ENABLE_RTEMS_RDBG="--disable-rdbg"
342fi
343
344if [ ${ENABLE_RTEMS_MAINTAINER_MODE} = yes ] ; then
345  ENABLE_RTEMS_MAINTAINER_MODE="--enable-maintainer-mode"
346else
347  ENABLE_RTEMS_MAINTAINER_MODE=""
348fi
349
350ENABLE_DEPRECATED_HEADERS="--disable-deprecated"
351
352if [ ${BUILD_RTEMS_DEBUG} = "yes" ] ; then
353  ENABLE_RTEMS_DEBUG="--enable-rtems-debug"
354else
355  ENABLE_RTEMS_DEBUG=""
356fi
357
358ENABLE_ARGS="\
359    --prefix=${INSTALL_POINT} \
360    ${DISABLE_INLINES_FLAG} ${ENABLE_MP_FLAG} ${ENABLE_SMP_FLAG} \
361    ${ENABLE_RTEMS_DEBUG} ${ENABLE_RTEMS_CXX} \
362    ${ENABLE_RTEMS_RDBG} ${ENABLE_RTEMS_MAINTAINER_MODE} \
363    ${RTEMS_TESTS_FLAG} ${TCPIP_FLAG} \
364    ${POSIX_FLAG} ${ITRON_FLAG} ${ENABLE_DEPRECATED_HEADERS} \
365    ${ADA_FLAG} ${ADA_TESTS_FLAG}"
366
367if [ $CPU != unix ] ; then
368  TARGET_ARG=--target=${target}
369  #ENABLE_BSP=
370fi
371
372conf_rtems ${TARGET_ARG} ${ENABLE_ARGS} ${ENABLE_BSP} $args
373if [ $? -ne 0 ] ; then
374  echo "Unable to configure successfully"
375  exit 1
376fi
377
378build_status=0
379
380export  PATH=$PATH:${INSTALL_POINT}/bin
381if [ ${verbose} = yes ]; then
382  echo "Initiating ${MAKE} .."
383fi
384
385if [ ${BUILD_RTEMS_DEBUG} = "yes" ] ; then
386 MAKE_DEBUG_ARG="VARIANT=DEBUG"
387fi
388
389# Calculate number of jobs as 1.5*ncpus + 1
390ncpus=`/usr/bin/getconf _NPROCESSORS_ONLN 2>/dev/null`
391if [ $? -ne 0 ] ; then
392  ncpus=2
393fi
394njobs=`expr ${ncpus} / 2 + 1 + ${ncpus}`
395echo "Using make ${njobs} parallel jobs"
396
397if [ ${ENABLE_KEEP_BUILDING} = "yes" ] ; then
398  MAKE_KEEP_GOING_ARG="-k"
399else
400  MAKE_KEEP_GOING_ARG=""
401fi
402
403case ${BSP_TO_TEST} in
404  multilib)
405     echo "Executing ${MAKE} ${MAKE_DEBUG_ARG} ..."
406     ${MAKE} -j${njobs} ${MAKE_KEEP_GOING_ARG} ${MAKE_DEBUG_ARG} \
407             RTEMS_BSP=
408     check_fatal $? "failed ${MAKE} ${MAKE_DEBUG_ARG}."
409     BSP_TO_TEST=
410     ;;
411  *)
412     echo "Executing ${MAKE} ${MAKE_DEBUG_ARG} ..."
413     ${MAKE} -j${njobs} ${MAKE_KEEP_GOING_ARG} ${MAKE_DEBUG_ARG} \
414             RTEMS_BSP=${BSP_TO_TEST}
415     check_fatal $? "failed ${MAKE} ${MAKE_DEBUG_ARG}."
416     ;;
417esac
418
419case $CPU in
420  unix) ;;
421  *)
422     if [ ${do_install} = "yes" ] ; then
423       echo "Executing ${MAKE} install ..."
424       if [ X${BSP_TO_TEST} = X ] ; then
425         ${MAKE} RTEMS_BSP= ${MAKE_DEBUG_ARG} install
426       else
427         find ${INSTALL_POINT}/${target} -name "*.h" -o -name "*.a" | \
428           while read f
429           do
430             rpm -qf $f >/dev/null 2>&1
431             test $? -eq 1 && (echo $f ; rm -f $f)
432           done
433
434         ${MAKE} RTEMS_BSP=${BSP_TO_TEST} ${MAKE_DEBUG_ARG} install
435       fi
436       check_fatal $? "failed ${MAKE} ${MAKE_DEBUG_ARG} install."
437     fi
438     ;;
439esac
440build_status=$?
441
442case ${target} in
443  *4.6*|*4.7*|*4.8*) exeext=exe ;;
444  *)                 exeext=ralf ;;
445esac
446
447case ${BSP_ARG} in
448  multilib)
449     # should be in build-CPU-multilib-rtems
450     pwd
451     cd ..
452     rm -rf ${BUILDDIR}-bsps
453     mkdir ${BUILDDIR}-bsps
454     cd ${BUILDDIR}-bsps
455     
456     # same configure but this time we build the BSPs
457     conf_rtems ${TARGET_ARG} ${ENABLE_ARGS} $args
458     check_fatal $? "Unable to configure BSP step successfully"
459
460     echo "Executing multilib BSP: ${MAKE} ${MAKE_DEBUG_ARG} ..."
461     ${MAKE} -k -j${njobs} ${MAKE_DEBUG_ARG}
462     status=$?
463
464     # clean up install point
465     find ${INSTALL_POINT}/${target}/lib -name "*rtems*.a" | xargs -e rm -f
466     rm -rf ${INSTALL_POINT}/${target}/lib/include
467
468     mkdir -p ../ticker-executables
469     find . -name ticker.${exeext} | while read f
470     do
471        bsp=`echo $f | cut -d'/' -f4`
472        cp $f ../ticker-executables/${CPU}-${bsp}-multilib-ticker.${exeext}
473     done
474
475     check_fatal $status "failed BSP ${MAKE} ${MAKE_DEBUG_ARG}."
476     exit 0
477     ;;
478  *)
479     ;;
480esac
481
482# If we were installing a bare BSP, then we must fix the install point
483if [ ${do_install} = yes -a ${doing_bare_bsp} = yes ] ; then
484  echo "Moving the RTEMS bare bsp directory to ${BSP_TO_TEST} ... "
485  test -d ${INSTALL_POINT}/${target}/bare
486  check_fatal $? "${INSTALL_POINT}/${target}/bare does not exist"
487  mv ${INSTALL_POINT}/${target}/bare ${INSTALL_POINT}/${target}/${BSP_TO_TEST}
488  check_fatal $? "failed to move the bare bsp directory to ${BSP_TO_TEST}."
489fi
490
491# gather size info of executables
492case ${target} in
493  unix) sizecmd=size           ; searchtestdir="NOT_SET";;
494  *)    sizecmd=${target}-size ; searchtestdir=${target}/${BSP_TO_TEST} ;;
495esac
496ext=exe
497count=`find . -name "*.nxe" | wc -l`
498if [ ${count} -ne 0 ] ; then
499  ext=nxe
500fi
501${sizecmd} `find . -name "*.${ext}"` | sed -e '1,1d' -e 's/^/SIZE:/'
502
503# Can we run the tests on a simulator?
504if [ ${ENABLE_RTEMS_TESTS} = "samples" -o \
505     ${ENABLE_RTEMS_TESTS} = "yes" ] ; then
506
507  if [ ${RUN_RTEMS_TESTS} = yes ] ; then
508    case ${BSP_TO_TEST} in
509      realview_pbx_a9_qemu*) testable=yes ;;  # arm/realview_pbx_a9_qemu*
510      xilinx_zynq_a9_qemu) testable=yes ;;  # arm/xilinx_zynq_a9_qemu
511      edb7312) testable=yes ;;  # arm/edb7312
512      rtl22xx) testable=yes ;;  # arm/rtl22xx
513      jmr3904) testable=yes ;;  # mips/jmr3904
514      psim)    testable=yes ;;  # powerpc/psim
515      sis)     testable=yes ;;  # sparc/sis
516      erc32|leon2|leon3)        # sparc using tsim
517        case `uname -n` in
518          england*|iceland*) testable=yes ;;
519          *)                 testable=no ;;
520        esac
521        ;;
522      posix)   testable=yes ;;  # unix/posix
523      *)       testable=no  ;;
524    esac
525  else
526    # Running tests disabled by user
527    testable=no
528  fi
529
530  # If not multilib, grab the ticker.${exeext} and save it out
531  if [ X${BSP_TO_TEST} != X ] ; then
532    mkdir -p ../ticker-executables
533    cp `find . -name ticker.${exeext}` \
534        ../ticker-executables/${CPU}-${BSP_TO_TEST}-ticker.${exeext}
535  fi
536
537  if [ ${testable} = yes ] ; then
538    echo TESTING BSP
539    testdir=${target}-${BSP_TO_TEST}
540    rm -rf ${testdir}
541
542    mkdir ${testdir}
543    check_fatal $? "failed to mkdir test directory for ${BSP_TO_TEST}."
544    cp `find . -name "*.${exeext}"` ${testdir}
545
546    case ${BSP_TO_TEST} in
547      jmr3904)  runner=jmr3904 ;;
548      psim)     runner=psim ;;
549      posix)    runner="" ;;
550      # ARM
551      edb7312)  runner=edb7312 ;;
552      gumstix)  runner=gumstix ;;
553      realview_pbx_a9_qemu*) runner=${BSP_TO_TEST} ;;
554      xilinx_zynq_a9_qemu) runner=xilinx_zynq_a9_qemu ;;
555      rtl22xx)  runner=rtl22xx ;;
556      # SPARC
557      erc32)    runner=erc32 ;;
558      leon2)    runner=leon  ;;
559      leon3)    runner=leon3 ;;
560      sis)      runner=sis ;;
561      *) ;;
562    esac
563
564    cd ${testdir}
565    check_fatal $? "failed to enter test directory for ${BSP_TO_TEST}."
566
567    # This should run the tests
568    ${runner} *.${exeext}
569
570    # Check Logs
571    echo "Checking Logs for Proper Test Completion ..."
572    check_endof
573
574    cd ..
575
576    # Do not gather test executables as they are very large
577   
578    # gather results as best we can
579    tar cjf ../log/${target}-${BSP_TO_TEST}-logs.tar.bz2 \
580        ${target}-${BSP_TO_TEST}/log
581 
582
583    # Should be back at the top of the build tree
584  fi
585fi
586
587pwd
588
589# if we installed it, then try to build hello world
590if [ ${do_install} = yes -a ${doing_bare_bsp} = no ] ; then
591  # if this is a multilib, then handle it specially
592  if [ X${BSP_TO_TEST} = X ] ; then
593      find ${INSTALL_POINT}/${target}/lib -name "*rtems*.a" | xargs -e rm -f
594      rm -rf ${INSTALL_POINT}/${target}/lib/include
595  else
596    SUITES=
597    case ${BSP_TO_TEST} in
598      posix|bare*) ;;
599      *)
600        if [ -d ../examples-v2 ] ; then
601          SUITES="${SUITES} examples-v2"
602        else
603          echo "WARNING! examples-v2 not found"
604        fi
605
606        if [ -d ../class-examples ] ; then
607          SUITES="${SUITES} class-examples"
608        else
609          echo "WARNING! class-examples not found"
610        fi
611
612        if [ -d ../examples ] ; then
613          SUITES="${SUITES} examples"
614        else
615          echo "WARNING! examples not found"
616        fi
617
618        if [ ${ENABLE_RTEMS_TCPIP} = yes ] ; then
619          if [ -d ../network-demos ] ; then
620            SUITES="${SUITES} network-demos"
621          fi
622        fi
623
624        # Build application level tests that use "make"
625        for suite in ${SUITES}
626        do
627          cd ..
628          cd ${suite}
629          check_fatal $? "failed cd to ${suite}."
630
631          RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
632             ${MAKE} ${MAKE_DEBUG_ARG} clean
633          check_fatal $? "failed 1st clean ${suite} on ${BSP_TO_TEST}."
634
635          RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
636             ${MAKE} ${MAKE_DEBUG_ARG}
637          check_fatal $? "failed ${suite} on ${BSP_TO_TEST}."
638
639          RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
640             ${MAKE} ${MAKE_DEBUG_ARG} clean
641          check_fatal $? "failed clean ${suite} on ${BSP_TO_TEST}."
642        done
643
644        # Build TCP/IP demos and addons
645        if [ ${ENABLE_RTEMS_POSIX} = yes -a  \
646             ${ENABLE_RTEMS_TCPIP} = yes -a \
647             -d ../rtems-addon-packages ] ; then
648
649          cd ../rtems-addon-packages
650          check_fatal $? "failed cd to rtems-addon-packages."
651
652          RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
653             sh ./bit
654          check_fatal $? "failed to build add on on ${BSP_TO_TEST}."
655
656        fi
657
658        # now clean up the install image
659        du -s -k ${INSTALL_POINT}/${target}/${BSP_TO_TEST}
660        rm -rf ${INSTALL_POINT}/${target}/${BSP_TO_TEST}
661        ;;
662    esac
663  fi
664fi
665exit 0
Note: See TracBrowser for help on using the repository browser.