mirror of
https://github.com/t-crest/rtems.git
synced 2025-11-16 12:34:47 +00:00
24 lines
548 B
Plaintext
24 lines
548 B
Plaintext
dnl $Id$
|
|
|
|
AC_DEFUN([_RTEMS_CHECK_CUSTOM_BSP],[
|
|
AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl sets RTEMS_CPU, target
|
|
AC_REQUIRE([RTEMS_TOP])dnl sets RTEMS_TOPdir
|
|
$2=
|
|
AC_MSG_CHECKING([for $1])
|
|
for i in \
|
|
`ls "${srcdir}/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}"/*/make/custom/$1 2>/dev/null`;
|
|
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],[
|
|
_RTEMS_CHECK_CUSTOM_BSP([[$]$1],[BSP_FOUND])
|
|
])
|