mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
18 lines
426 B
Plaintext
18 lines
426 B
Plaintext
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=
|
|
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
|
|
])
|
|
|
|
AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
|
|
_RTEMS_CHECK_CUSTOM_BSP([[$]$1],[BSP_FOUND])
|
|
])
|