source: rtems-testing/rtems/bit_rtems @ 345f110

4.11
Last change on this file since 345f110 was 345f110, checked in by Sebastian Huber <sebastian.huber@…>, on May 31, 2013 at 3:33:05 PM

Fix runner for realview_pbx_a9_qemu_smp

  • Property mode set to 100755
File size: 16.8 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_ITRON} = yes ] ; then
285  ITRON_FLAG="--enable-itron"
286else
287  ITRON_FLAG="--disable-itron"
288fi
289
290ADA_FLAG="--disable-ada"
291ADA_TESTS_FLAG="--disable-expada"
292case ${target} in
293  sparc*|powerpc*|i386*)
294    if [ ${ENABLE_RTEMS_ADA} = yes ] ; then
295      ADA_FLAG="--enable-ada"
296    fi
297
298    if [ ${ENABLE_RTEMS_ADA_TESTS} = yes ] ; then
299      ADA_TESTS_FLAG="--enable-expada"
300    fi
301    ;;
302  *)
303    ;;
304esac
305
306# Only a few BSPs really support MP
307if [ ${ENABLE_RTEMS_MP} = yes ] ; then
308  case ${BSP_TO_TEST} in
309    simhppa|cvme961|mvme136|mvme147s|psim|posix|multilib|leon3)
310      ENABLE_MP_FLAG="--enable-multiprocessing"
311      ;;
312    *)
313      echo "AUTOMATICALLY DISABLING MULTIPROCESSING!!!"
314      ENABLE_MP_FLAG="--disable-multiprocessing"
315      ;;
316  esac
317else
318  ENABLE_MP_FLAG="--disable-multiprocessing"
319fi
320
321# Some CPUs do not have C++ support
322if [ ${ENABLE_RTEMS_CXX} = yes ] ; then
323  case ${CPU} in
324    avr|bfin|m32c|m32r|tic4x)
325       ENABLE_RTEMS_CXX="--disable-cxx" ;;
326    *) ENABLE_RTEMS_CXX="--enable-cxx" ;;
327  esac
328else
329  ENABLE_RTEMS_CXX="--disable-cxx"
330fi
331
332if [ ${ENABLE_RTEMS_RDBG} = yes ] ; then
333  ENABLE_RTEMS_RDBG="--enable-rdbg"
334else
335  ENABLE_RTEMS_RDBG="--disable-rdbg"
336fi
337
338if [ ${ENABLE_RTEMS_MAINTAINER_MODE} = yes ] ; then
339  ENABLE_RTEMS_MAINTAINER_MODE="--enable-maintainer-mode"
340else
341  ENABLE_RTEMS_MAINTAINER_MODE=""
342fi
343
344ENABLE_DEPRECATED_HEADERS="--disable-deprecated"
345
346if [ ${BUILD_RTEMS_DEBUG} = "yes" ] ; then
347  ENABLE_RTEMS_DEBUG="--enable-rtems-debug"
348else
349  ENABLE_RTEMS_DEBUG=""
350fi
351
352ENABLE_ARGS="\
353    --prefix=${INSTALL_POINT} \
354    ${DISABLE_INLINES_FLAG} ${ENABLE_MP_FLAG} \
355    ${ENABLE_RTEMS_DEBUG} ${ENABLE_RTEMS_CXX} \
356    ${ENABLE_RTEMS_RDBG} ${ENABLE_RTEMS_MAINTAINER_MODE} \
357    ${RTEMS_TESTS_FLAG} ${TCPIP_FLAG} \
358    ${POSIX_FLAG} ${ITRON_FLAG} ${ENABLE_DEPRECATED_HEADERS} \
359    ${ADA_FLAG} ${ADA_TESTS_FLAG}"
360
361if [ $CPU != unix ] ; then
362  TARGET_ARG=--target=${target}
363  #ENABLE_BSP=
364fi
365
366conf_rtems ${TARGET_ARG} ${ENABLE_ARGS} ${ENABLE_BSP} $args
367if [ $? -ne 0 ] ; then
368  echo "Unable to configure successfully"
369  exit 1
370fi
371
372build_status=0
373
374export  PATH=$PATH:${INSTALL_POINT}/bin
375if [ ${verbose} = yes ]; then
376  echo "Initiating ${MAKE} .."
377fi
378
379if [ ${BUILD_RTEMS_DEBUG} = "yes" ] ; then
380 MAKE_DEBUG_ARG="VARIANT=DEBUG"
381fi
382
383# Calculate number of jobs as 1.5*ncpus + 1
384ncpus=`/usr/bin/getconf _NPROCESSORS_ONLN 2>/dev/null`
385if [ $? -ne 0 ] ; then
386  ncpus=2
387fi
388njobs=`expr ${ncpus} / 2 + 1 + ${ncpus}`
389echo "Using make ${njobs} parallel jobs"
390
391case ${BSP_TO_TEST} in
392  multilib)
393     echo "Executing ${MAKE} ${MAKE_DEBUG_ARG} ..."
394     ${MAKE} -j${njobs} RTEMS_BSP= ${MAKE_DEBUG_ARG}
395     check_fatal $? "failed ${MAKE} ${MAKE_DEBUG_ARG}."
396     BSP_TO_TEST=
397     ;;
398  *)
399     echo "Executing ${MAKE} ${MAKE_DEBUG_ARG} ..."
400     ${MAKE} -j${njobs} RTEMS_BSP=${BSP_TO_TEST} ${MAKE_DEBUG_ARG}
401     check_fatal $? "failed ${MAKE} ${MAKE_DEBUG_ARG}."
402     ;;
403esac
404
405case $CPU in
406  unix) ;;
407  *)
408     if [ ${do_install} = "yes" ] ; then
409       echo "Executing ${MAKE} install ..."
410       if [ X${BSP_TO_TEST} = X ] ; then
411         ${MAKE} RTEMS_BSP= ${MAKE_DEBUG_ARG} install
412       else
413         find ${INSTALL_POINT}/${target} -name "*.h" -o -name "*.a" | \
414           while read f
415           do
416             rpm -qf $f >/dev/null 2>&1
417             test $? -eq 1 && (echo $f ; rm -f $f)
418           done
419
420         ${MAKE} RTEMS_BSP=${BSP_TO_TEST} ${MAKE_DEBUG_ARG} install
421       fi
422       check_fatal $? "failed ${MAKE} ${MAKE_DEBUG_ARG} install."
423     fi
424     ;;
425esac
426build_status=$?
427
428case ${target} in
429  *4.6*|*4.7*|*4.8*) exeext=exe ;;
430  *)                 exeext=ralf ;;
431esac
432
433case ${BSP_ARG} in
434  multilib)
435     # should be in build-CPU-multilib-rtems
436     pwd
437     cd ..
438     rm -rf ${BUILDDIR}-bsps
439     mkdir ${BUILDDIR}-bsps
440     cd ${BUILDDIR}-bsps
441     
442     # same configure but this time we build the BSPs
443     conf_rtems ${TARGET_ARG} ${ENABLE_ARGS} $args
444     check_fatal $? "Unable to configure BSP step successfully"
445
446     echo "Executing multilib BSP: ${MAKE} ${MAKE_DEBUG_ARG} ..."
447     ${MAKE} -k -j${njobs} ${MAKE_DEBUG_ARG}
448     status=$?
449
450     # clean up install point
451     find ${INSTALL_POINT}/${target}/lib -name "*rtems*.a" | xargs -e rm -f
452     rm -rf ${INSTALL_POINT}/${target}/lib/include
453
454     mkdir -p ../ticker-executables
455     find . -name ticker.${exeext} | while read f
456     do
457        bsp=`echo $f | cut -d'/' -f4`
458        cp $f ../ticker-executables/${CPU}-${bsp}-multilib-ticker.${exeext}
459     done
460
461     check_fatal $status "failed BSP ${MAKE} ${MAKE_DEBUG_ARG}."
462     exit 0
463     ;;
464  *)
465     ;;
466esac
467
468# If we were installing a bare BSP, then we must fix the install point
469if [ ${do_install} = yes -a ${doing_bare_bsp} = yes ] ; then
470  echo "Moving the RTEMS bare bsp directory to ${BSP_TO_TEST} ... "
471  test -d ${INSTALL_POINT}/${target}/bare
472  check_fatal $? "${INSTALL_POINT}/${target}/bare does not exist"
473  mv ${INSTALL_POINT}/${target}/bare ${INSTALL_POINT}/${target}/${BSP_TO_TEST}
474  check_fatal $? "failed to move the bare bsp directory to ${BSP_TO_TEST}."
475fi
476
477# gather size info of executables
478case ${target} in
479  unix) sizecmd=size           ; searchtestdir="NOT_SET";;
480  *)    sizecmd=${target}-size ; searchtestdir=${target}/${BSP_TO_TEST} ;;
481esac
482ext=exe
483count=`find . -name "*.nxe" | wc -l`
484if [ ${count} -ne 0 ] ; then
485  ext=nxe
486fi
487${sizecmd} `find . -name "*.${ext}"` | sed -e '1,1d' -e 's/^/SIZE:/'
488
489# Can we run the tests on a simulator?
490if [ ${ENABLE_RTEMS_TESTS} = "samples" -o \
491     ${ENABLE_RTEMS_TESTS} = "yes" ] ; then
492
493  if [ ${RUN_RTEMS_TESTS} = yes ] ; then
494    case ${BSP_TO_TEST} in
495      realview_pbx_a9_qemu*) testable=yes ;;  # arm/realview_pbx_a9_qemu*
496      xilinx_zynq_a9_qemu) testable=yes ;;  # arm/xilinx_zynq_a9_qemu
497      edb7312) testable=yes ;;  # arm/edb7312
498      rtl22xx) testable=yes ;;  # arm/rtl22xx
499      jmr3904) testable=yes ;;  # mips/jmr3904
500      psim)    testable=yes ;;  # powerpc/psim
501      sis)     testable=yes ;;  # sparc/sis
502      erc32|leon2|leon3)        # sparc using tsim
503        case `uname -n` in
504          england*|iceland*) testable=yes ;;
505          *)                 testable=no ;;
506        esac
507        ;;
508      posix)   testable=yes ;;  # unix/posix
509      *)       testable=no  ;;
510    esac
511  else
512    # Running tests disabled by user
513    testable=no
514  fi
515
516  # If not multilib, grab the ticker.${exeext} and save it out
517  if [ X${BSP_TO_TEST} != X ] ; then
518    mkdir -p ../ticker-executables
519    cp `find . -name ticker.${exeext}` \
520        ../ticker-executables/${CPU}-${BSP_TO_TEST}-ticker.${exeext}
521  fi
522
523  if [ ${testable} = yes ] ; then
524    echo TESTING BSP
525    testdir=${target}-${BSP_TO_TEST}
526    rm -rf ${testdir}
527
528    mkdir ${testdir}
529    check_fatal $? "failed to mkdir test directory for ${BSP_TO_TEST}."
530    cp `find . -name "*.${exeext}"` ${testdir}
531
532    case ${BSP_TO_TEST} in
533      jmr3904)  runner=jmr3904 ;;
534      psim)     runner=psim ;;
535      posix)    runner="" ;;
536      # ARM
537      edb7312)  runner=edb7312 ;;
538      gumstix)  runner=gumstix ;;
539      realview_pbx_a9_qemu*) runner=${BSP_TO_TEST} ;;
540      xilinx_zynq_a9_qemu) runner=xilinx_zynq_a9_qemu ;;
541      rtl22xx)  runner=rtl22xx ;;
542      # SPARC
543      erc32)    runner=erc32 ;;
544      leon2)    runner=leon  ;;
545      leon3)    runner=leon3 ;;
546      sis)      runner=sis ;;
547      *) ;;
548    esac
549
550    cd ${testdir}
551    check_fatal $? "failed to enter test directory for ${BSP_TO_TEST}."
552
553    # This should run the tests
554    ${runner} *.${exeext}
555
556    # Check Logs
557    echo "Checking Logs for Proper Test Completion ..."
558    check_endof
559
560    cd ..
561
562    # Do not gather test executables as they are very large
563   
564    # gather results as best we can
565    tar cjf ../log/${target}-${BSP_TO_TEST}-logs.tar.bz2 \
566        ${target}-${BSP_TO_TEST}/log
567 
568
569    # Should be back at the top of the build tree
570  fi
571fi
572
573pwd
574
575# if we installed it, then try to build hello world
576if [ ${do_install} = yes -a ${doing_bare_bsp} = no ] ; then
577  # if this is a multilib, then handle it specially
578  if [ X${BSP_TO_TEST} = X ] ; then
579      find ${INSTALL_POINT}/${target}/lib -name "*rtems*.a" | xargs -e rm -f
580      rm -rf ${INSTALL_POINT}/${target}/lib/include
581  else
582    SUITES=
583    case ${BSP_TO_TEST} in
584      posix|bare*) ;;
585      *)
586        if [ -d ../examples-v2 ] ; then
587          SUITES="${SUITES} examples-v2"
588        else
589          echo "WARNING! examples-v2 not found"
590        fi
591
592        if [ -d ../class-examples ] ; then
593          SUITES="${SUITES} class-examples"
594        else
595          echo "WARNING! class-examples not found"
596        fi
597
598        if [ -d ../examples ] ; then
599          SUITES="${SUITES} examples"
600        else
601          echo "WARNING! examples not found"
602        fi
603
604        if [ ${ENABLE_RTEMS_TCPIP} = yes ] ; then
605          if [ -d ../network-demos ] ; then
606            SUITES="${SUITES} network-demos"
607          fi
608        fi
609
610        # Build application level tests that use "make"
611        for suite in ${SUITES}
612        do
613          cd ..
614          cd ${suite}
615          check_fatal $? "failed cd to ${suite}."
616
617          RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
618             ${MAKE} ${MAKE_DEBUG_ARG} clean
619          check_fatal $? "failed 1st clean ${suite} on ${BSP_TO_TEST}."
620
621          RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
622             ${MAKE} ${MAKE_DEBUG_ARG}
623          check_fatal $? "failed ${suite} on ${BSP_TO_TEST}."
624
625          RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
626             ${MAKE} ${MAKE_DEBUG_ARG} clean
627          check_fatal $? "failed clean ${suite} on ${BSP_TO_TEST}."
628        done
629
630        # Build TCP/IP demos and addons
631        if [ ${ENABLE_RTEMS_POSIX} = yes -a  \
632             ${ENABLE_RTEMS_TCPIP} = yes -a \
633             -d ../rtems-addon-packages ] ; then
634
635          cd ../rtems-addon-packages
636          check_fatal $? "failed cd to rtems-addon-packages."
637
638          RTEMS_MAKEFILE_PATH=${INSTALL_POINT}/${target}/${BSP_TO_TEST} \
639             sh ./bit
640          check_fatal $? "failed to build add on on ${BSP_TO_TEST}."
641
642        fi
643
644        # now clean up the install image
645        du -s -k ${INSTALL_POINT}/${target}/${BSP_TO_TEST}
646        rm -rf ${INSTALL_POINT}/${target}/${BSP_TO_TEST}
647        ;;
648    esac
649  fi
650fi
651exit 0
Note: See TracBrowser for help on using the repository browser.