diff options
author | Chris Johns <chrisj@rtems.org> | 2018-04-09 16:36:12 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2018-04-10 08:22:07 +1000 |
commit | e1664027fe334db174ed74372138d3236f89b52c (patch) | |
tree | 3f21e5787f8445532c23c3278f7017386879a61d /aclocal/enable-smp.m4 | |
parent | 9f6f0261c172bee5463bb6724809e8486c9197ea (diff) |
Require the user to provide a BSP list when build SMP or MP.
Close 3383.
Diffstat (limited to '')
-rw-r--r-- | aclocal/enable-smp.m4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/aclocal/enable-smp.m4 b/aclocal/enable-smp.m4 index 590a7b15ff..e6461de685 100644 --- a/aclocal/enable-smp.m4 +++ b/aclocal/enable-smp.m4 @@ -5,13 +5,14 @@ AC_DEFUN([RTEMS_ENABLE_SMP], AC_ARG_ENABLE(smp, [AS_HELP_STRING([--enable-smp],[enable support for symmetric multiprocessing (SMP)])], -[case "${enableval}" in - yes) case "${RTEMS_CPU}" in +[case "${enableval}" in + yes) test -z $enable_rtemsbsp && AC_MSG_ERROR([SMP requires BSPs to be provided, none have, see --enable-rtemsbsp]) + case "${RTEMS_CPU}" in arm|powerpc|sparc|i386) RTEMS_HAS_SMP=yes ;; *) RTEMS_HAS_SMP=no ;; esac ;; no) RTEMS_HAS_SMP=no ;; *) AC_MSG_ERROR(bad value ${enableval} for enable-smp option) ;; -esac],[RTEMS_HAS_SMP=no]) +esac],[RTEMS_HAS_SMP=no]) ]) |