summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-13 14:47:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-08-13 14:47:18 +0000
commit579fc6a3a35c2e18a79f596485c339d5d721a20d (patch)
tree9f4ecb10690e59ceb93aaec2bac222fc39be2805 /configure.in
parent98984259211ce5003e9779b4c8f551aa36c3b49b (diff)
downloadrtems-579fc6a3a35c2e18a79f596485c339d5d721a20d.tar.bz2
Per request from Chris Johns <ccj@acm.org>, I added code to detect
when the bare bsp was enabled without setting both --enable-cpu-model and --enable-cpu-cflags.
Diffstat (limited to '')
-rw-r--r--configure.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index f903cd7b94..a4a9125b38 100644
--- a/configure.in
+++ b/configure.in
@@ -318,8 +318,18 @@ if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
# Is there code where there should be for this BSP?
# The bare bsp is a special case as it is not under the target_cpu path
case $i in
- bare) bspcpudir= ;;
- *) bspcpudir=$target_cpu/ ;;
+ bare)
+ bspcpudir=
+ if test "X${BARE_CPU_CFLAGS}" = "X" ; then
+ AC_MSG_ERROR([--enable-bare-cpu-flags not specified for bare bsp])
+ fi
+ if test "X${BARE_CPU_MODEL}" = "X" ; then
+ AC_MSG_ERROR([--enable-bare-cpu-model not specified for bare bsp])
+ fi
+ ;;
+ *)
+ bspcpudir=$target_cpu/
+ ;;
esac
if test -d "$srcdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then