forked from Imagelibrary/rtems
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.
23 lines
524 B
Plaintext
23 lines
524 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
|
|
for i in ${rtems_rootdir}make/custom/$1;
|
|
do
|
|
AC_MSG_CHECKING([for $i])
|
|
AS_IF([test -r $i],[
|
|
$2="$i"
|
|
AC_MSG_RESULT([yes])
|
|
break;
|
|
],[
|
|
AC_MSG_RESULT([no])
|
|
])
|
|
done
|
|
])
|
|
|
|
AC_DEFUN([RTEMS_CHECK_CUSTOM_BSP],[
|
|
_RTEMS_CHECK_CUSTOM_BSP([[$]$1.cfg],[BSP_FOUND])
|
|
AS_IF([test -z "$BSP_FOUND"],[
|
|
AC_MSG_ERROR([missing [$]$1.cfg])
|
|
])
|
|
])
|