Changeset 504112d in rtems
- Timestamp:
- 10/18/04 09:38:02 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 1469078f
- Parents:
- 2d1daae
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r2d1daae r504112d 1 2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org> 2 3 * aclocal/check-bsps.m4: Add bspkit support. Don't check for 4 presence of *.cfg. 5 * aclocal/check-custom-bsp.m4: Add bspkit support. 6 1 7 2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org> 2 8 -
aclocal/check-bsps.m4
r2d1daae r504112d 1 1 dnl $Id$ 2 2 3 dnl Report all available bsps for a target, 4 dnl check if a bsp-subdirectory is present for all bsps found 3 dnl Report all available bsps for a target within the source tree 5 4 dnl 6 5 dnl RTEMS_CHECK_BSPS(bsp_list) 7 6 AC_DEFUN([RTEMS_CHECK_BSPS], 8 7 [ 9 AC_REQUIRE([RTEMS_C HECK_CPU])dnl sets RTEMS_CPU, target8 AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target 10 9 AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir 11 AC_MSG_CHECKING([for bsps]) 12 files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU` 13 for bsp_family in $files; do 14 if test -r $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$bsp_family/bsp_specs; then 15 case $bsp_family in 10 11 AC_MSG_CHECKING([for available BSPs]) 12 $1= 13 for bsp_spec in "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU"/*/bsp_specs; do 14 bsp_family=`echo "$bsp_spec" | sed \ 15 -e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/,," \ 16 -e "s,/bsp_specs$,,"` 17 case $bsp_family in 16 18 # Now account for BSPs with build variants 17 19 c4xsim) bsps="c4xsim c3xsim";; … … 27 29 shsim) bsps="simsh7032 simsh7045";; 28 30 *) bsps="$bsp_family";; 29 esac; 30 for bsp in $bsps; do 31 AS_IF([test -r $srcdir/$RTEMS_TOPdir/make/custom/$bsp.cfg], 32 [$1="[$]$1 $bsp"]) 33 done 34 fi 35 done 36 AC_MSG_RESULT([[$]$1 .. done]) 31 esac; 32 $1="[$]$1 $bsps" 33 done 34 AS_IF([test -z "[$]$1"], 35 [AC_MSG_RESULT([none])], 36 [AC_MSG_RESULT([$]$1)]) 37 37 ])dnl -
aclocal/check-custom-bsp.m4
r2d1daae r504112d 1 1 dnl $Id$ 2 2 3 AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP], 4 [ 5 AC_REQUIRE([RTEMS_TOP]) 3 AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[ 4 AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target 5 AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir 6 $2= 7 AC_MSG_CHECKING([for $1]) 8 for i in "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/"$1" \ 9 "${srcdir}/${RTEMS_TOPdir}/make/custom/$1"; 10 do 11 AS_IF([test -r $i],[ 12 $2="$i" 13 break; 14 ]) 15 done 16 AS_IF([test -n "[$]$2"], 17 [AC_MSG_RESULT([[$]$2])], 18 [AC_MSG_RESULT([no])]) 19 ]) 6 20 7 AC_MSG_CHECKING([for make/custom/[$]$1.cfg]) 8 AS_IF([test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"], 9 [AC_MSG_RESULT([yes])], 10 [AC_MSG_ERROR([no])]) 21 AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[ 22 AC_REQUIRE([RTEMS_TOP]) 23 _RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND]) 11 24 ])
Note: See TracChangeset
for help on using the changeset viewer.