From 8bdacef30b0b1c675002ba85c7ff17965258a6cc Mon Sep 17 00:00:00 2001
From: Chris Johns <chrisj@rtems.org>
Date: Mon, 14 Mar 2016 12:59:37 +1100
Subject: [PATCH] configure: Check the --enable-rtemsbsp list of BSPs early in
the cofigure processes.
Closes #2641.
---
aclocal/enable-rtemsbsp.m4 | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
diff --git a/aclocal/enable-rtemsbsp.m4 b/aclocal/enable-rtemsbsp.m4
index 613a29e..cddd9ea 100644
a
|
b
|
AC_ARG_ENABLE(rtemsbsp, |
10 | 10 | [case "${enable_rtemsbsp}" in |
11 | 11 | yes ) enable_rtemsbsp="" ;; |
12 | 12 | no ) enable_rtemsbsp="no" ;; |
13 | | *) enable_rtemsbsp="$enable_rtemsbsp" ;; |
| 13 | *) |
| 14 | enable_rtemsbsp="$enable_rtemsbsp" |
| 15 | lbsps=`echo "$enable_rtemsbsp" | awk '{split([$]0,b,","); for (i in b) print b[[i]];}'` |
| 16 | _a_bsp_not_found="no" |
| 17 | for b in $lbsps; do |
| 18 | AC_MSG_CHECKING([for BSP ($RTEMS_CPU/$b) ]) |
| 19 | bsp=$b.cfg |
| 20 | RTEMS_CHECK_CUSTOM_BSP([bsp]) |
| 21 | AS_IF([test x"$BSP_FOUND" = x""], |
| 22 | [AC_MSG_RESULT(not found) |
| 23 | _a_bsp_not_found="yes"], |
| 24 | [AC_MSG_RESULT(found)]) |
| 25 | done |
| 26 | AS_IF([test $_a_bsp_not_found = "yes"], |
| 27 | [AC_MSG_ERROR(BSP(s) in --enable-rtemsbsp not found)]) |
| 28 | ;; |
14 | 29 | esac],[enable_rtemsbsp=""]) |
15 | 30 | ]) |