forked from Imagelibrary/rtems
2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org>
* aclocal/check-bsps.m4: Add bspkit support. Don't check for presence of *.cfg. * aclocal/check-custom-bsp.m4: Add bspkit support.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
|
* aclocal/check-bsps.m4: Add bspkit support. Don't check for
|
||||||
|
presence of *.cfg.
|
||||||
|
* aclocal/check-custom-bsp.m4: Add bspkit support.
|
||||||
|
|
||||||
2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org>
|
2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
* aclocal/enable-bare.m4: Remove.
|
* aclocal/enable-bare.m4: Remove.
|
||||||
|
|||||||
@@ -1,18 +1,20 @@
|
|||||||
dnl $Id$
|
dnl $Id$
|
||||||
|
|
||||||
dnl Report all available bsps for a target,
|
dnl Report all available bsps for a target within the source tree
|
||||||
dnl check if a bsp-subdirectory is present for all bsps found
|
|
||||||
dnl
|
dnl
|
||||||
dnl RTEMS_CHECK_BSPS(bsp_list)
|
dnl RTEMS_CHECK_BSPS(bsp_list)
|
||||||
AC_DEFUN([RTEMS_CHECK_BSPS],
|
AC_DEFUN([RTEMS_CHECK_BSPS],
|
||||||
[
|
[
|
||||||
AC_REQUIRE([RTEMS_CHECK_CPU])dnl sets RTEMS_CPU, target
|
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
|
||||||
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
|
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
|
||||||
AC_MSG_CHECKING([for bsps])
|
|
||||||
files=`ls $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU`
|
AC_MSG_CHECKING([for available BSPs])
|
||||||
for bsp_family in $files; do
|
$1=
|
||||||
if test -r $srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$bsp_family/bsp_specs; then
|
for bsp_spec in "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU"/*/bsp_specs; do
|
||||||
case $bsp_family in
|
bsp_family=`echo "$bsp_spec" | sed \
|
||||||
|
-e "s,^$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/,," \
|
||||||
|
-e "s,/bsp_specs$,,"`
|
||||||
|
case $bsp_family in
|
||||||
# Now account for BSPs with build variants
|
# Now account for BSPs with build variants
|
||||||
c4xsim) bsps="c4xsim c3xsim";;
|
c4xsim) bsps="c4xsim c3xsim";;
|
||||||
gen68360) bsps="gen68360 gen68360_040";;
|
gen68360) bsps="gen68360 gen68360_040";;
|
||||||
@@ -26,12 +28,10 @@ AC_MSG_CHECKING([for bsps])
|
|||||||
sim68000) bsps="sim68000 simcpu32";;
|
sim68000) bsps="sim68000 simcpu32";;
|
||||||
shsim) bsps="simsh7032 simsh7045";;
|
shsim) bsps="simsh7032 simsh7045";;
|
||||||
*) bsps="$bsp_family";;
|
*) bsps="$bsp_family";;
|
||||||
esac;
|
esac;
|
||||||
for bsp in $bsps; do
|
$1="[$]$1 $bsps"
|
||||||
AS_IF([test -r $srcdir/$RTEMS_TOPdir/make/custom/$bsp.cfg],
|
done
|
||||||
[$1="[$]$1 $bsp"])
|
AS_IF([test -z "[$]$1"],
|
||||||
done
|
[AC_MSG_RESULT([none])],
|
||||||
fi
|
[AC_MSG_RESULT([$]$1)])
|
||||||
done
|
|
||||||
AC_MSG_RESULT([[$]$1 .. done])
|
|
||||||
])dnl
|
])dnl
|
||||||
|
|||||||
@@ -1,11 +1,24 @@
|
|||||||
dnl $Id$
|
dnl $Id$
|
||||||
|
|
||||||
AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],
|
AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
|
||||||
[
|
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
|
||||||
AC_REQUIRE([RTEMS_TOP])
|
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
|
||||||
|
$2=
|
||||||
AC_MSG_CHECKING([for make/custom/[$]$1.cfg])
|
AC_MSG_CHECKING([for $1])
|
||||||
AS_IF([test -r "$srcdir/$RTEMS_TOPdir/make/custom/[$]$1.cfg"],
|
for i in "${srcdir}/${RTEMS_TOPdir}/bspkit/${RTEMS_CPU}"/*/"$1" \
|
||||||
[AC_MSG_RESULT([yes])],
|
"${srcdir}/${RTEMS_TOPdir}/make/custom/$1";
|
||||||
[AC_MSG_ERROR([no])])
|
do
|
||||||
|
AS_IF([test -r $i],[
|
||||||
|
$2="$i"
|
||||||
|
break;
|
||||||
|
])
|
||||||
|
done
|
||||||
|
AS_IF([test -n "[$]$2"],
|
||||||
|
[AC_MSG_RESULT([[$]$2])],
|
||||||
|
[AC_MSG_RESULT([no])])
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
|
||||||
|
AC_REQUIRE([RTEMS_TOP])
|
||||||
|
_RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user