forked from Imagelibrary/rtems
2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org>
* configure.ac: Rework checking for BSPs.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
|
* configure.ac: Rework checking for BSPs.
|
||||||
|
|
||||||
2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org>
|
2004-10-18 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||||
|
|
||||||
* acinclude.m4: Remove RTEMS_CHECK_CPU.
|
* acinclude.m4: Remove RTEMS_CHECK_CPU.
|
||||||
|
|||||||
@@ -15,38 +15,39 @@ AM_MAINTAINER_MODE
|
|||||||
## These options are used within this file.
|
## These options are used within this file.
|
||||||
RTEMS_ENABLE_RTEMSBSP
|
RTEMS_ENABLE_RTEMSBSP
|
||||||
|
|
||||||
|
# Set up rtems_bsp
|
||||||
AS_IF([test x"$enable_rtemsbsp" = x"no"],[
|
AS_IF([test x"$enable_rtemsbsp" = x"no"],[
|
||||||
|
# --disable-rtemsbsp
|
||||||
rtems_bsp=""
|
rtems_bsp=""
|
||||||
],[
|
],[
|
||||||
AS_IF([test -z "$enable_rtemsbsp"],
|
AS_IF([test -z "$enable_rtemsbsp"],
|
||||||
[RTEMS_CHECK_BSPS(rtems_bsp)],
|
[# --enable-rtemsbsp=""
|
||||||
[rtems_bsp="$enable_rtemsbsp"])
|
RTEMS_CHECK_BSPS(rtems_bsp)],
|
||||||
|
[# --enable-rtemsbsp="list"
|
||||||
|
rtems_bsp="$enable_rtemsbsp"])
|
||||||
|
])
|
||||||
|
|
||||||
for i in $rtems_bsp; do
|
# Check sanity of BSPs in $rtems_bsp
|
||||||
|
for _rtems_bsp in : $rtems_bsp; do test "x$_rtems_bsp" = x: && continue
|
||||||
|
# make sure there is a make/custom file for the bsp
|
||||||
|
_RTEMS_CHECK_CUSTOM_BSP([$_rtems_bsp.cfg],[bsp_cfg])
|
||||||
|
|
||||||
# make sure there is a make/custom file for the bsp
|
AS_IF([test -n "$bsp_cfg"],
|
||||||
RTEMS_CHECK_CUSTOM_BSP(i)
|
[
|
||||||
|
# retrieve bsp_family
|
||||||
RTEMS_BSP_ALIAS($i,bspdir)
|
RTEMS_BSP_ALIAS([$_rtems_bsp],[rtems_bsp_family])
|
||||||
|
|
||||||
# Is there code where there should be for this BSP?
|
# Is there code where there should be for this BSP?
|
||||||
# The bare bsp is a special case as it is not under the RTEMS_CPU path
|
case $rtems_bsp_family in
|
||||||
case $bspdir in
|
bare ) rtems_libbspdir="$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/bare" ;;
|
||||||
bare)
|
* ) rtems_libbspdir="$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$RTEMS_CPU/$rtems_bsp_family";;
|
||||||
bspcpudir=
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
bspcpudir=$RTEMS_CPU/
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if test -d "$srcdir/$RTEMS_TOPdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
|
# Is there a configure script for the BSP?
|
||||||
RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
|
AS_IF([test -r "$rtems_libbspdir/configure"],
|
||||||
else
|
[RTEMS_BSP_LIST="$RTEMS_BSP_LIST $_rtems_bsp"])
|
||||||
AC_MSG_ERROR([unable to find libbsp directory ($bspdir) for $i])
|
])
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
])
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Compose the configuration arguments to be passed to c/src/configure
|
# Compose the configuration arguments to be passed to c/src/configure
|
||||||
@@ -84,10 +85,11 @@ BSPEOF
|
|||||||
done
|
done
|
||||||
],[RTEMS_BSP_LIST="$RTEMS_BSP_LIST"])
|
],[RTEMS_BSP_LIST="$RTEMS_BSP_LIST"])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
AS_IF([test -n "$RTEMS_BSP_LIST"],[
|
||||||
echo
|
echo
|
||||||
echo target architecture: $target_cpu.
|
echo target architecture: $target_cpu.
|
||||||
echo available BSPs: $rtems_bsp.
|
echo available BSPs: $RTEMS_BSP_LIST.
|
||||||
echo \'${MAKE} all\' will build the following BSPs: $RTEMS_BSP_LIST.
|
echo \'${MAKE} all\' will build the following BSPs: $RTEMS_BSP_LIST.
|
||||||
echo other BSPs can be built with \'${MAKE} RTEMS_BSP=\"bsp1 bsp2 ...\"\'
|
echo other BSPs can be built with \'${MAKE} RTEMS_BSP=\"bsp1 bsp2 ...\"\'
|
||||||
echo
|
echo
|
||||||
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user