5
Last change
on this file since eaf5bec was
1efa1c8,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 11:38:33
|
bsps: Move MPCI support to bsps
This patch is a part of the BSP source reorganization.
Update #3285.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | AC_DEFUN([RTEMS_CHECK_MULTIPROCESSING], |
---|
2 | [dnl |
---|
3 | AC_REQUIRE([RTEMS_ENABLE_MULTILIB])dnl |
---|
4 | AC_REQUIRE([RTEMS_ENV_RTEMSBSP])dnl |
---|
5 | AC_REQUIRE([RTEMS_TOP])dnl |
---|
6 | AC_REQUIRE([RTEMS_CANONICAL_TARGET_CPU])dnl |
---|
7 | AC_REQUIRE([RTEMS_ENABLE_MULTIPROCESSING])dnl |
---|
8 | |
---|
9 | AC_CACHE_CHECK([if wanting multiprocessing], |
---|
10 | [rtems_cv_want_multiprocessing], |
---|
11 | [ |
---|
12 | AS_IF([test x"$multilib" = x"no"], |
---|
13 | [# no cpukit |
---|
14 | rtems_cv_want_multiprocessing="$enable_multiprocessing" |
---|
15 | ],[ |
---|
16 | #HACK: Should check for RTEMS_MULTIPROCESSING in cpuopts.h, instead |
---|
17 | rtems_cv_want_multiprocessing="$enable_multiprocessing" |
---|
18 | ]) |
---|
19 | ]) |
---|
20 | |
---|
21 | AS_IF([test "$rtems_cv_want_multiprocessing" = "yes"], |
---|
22 | [ |
---|
23 | AC_CACHE_CHECK([whether BSP supports multiprocessing], |
---|
24 | [rtems_cv_HAS_MP],[ |
---|
25 | if test -d "${RTEMS_SOURCE_ROOT}/bsps/${RTEMS_CPU}/${RTEMS_BSP_FAMILY}/mpci"; then |
---|
26 | rtems_cv_HAS_MP="yes" ; |
---|
27 | else |
---|
28 | rtems_cv_HAS_MP="no"; |
---|
29 | fi |
---|
30 | ]) |
---|
31 | if test $rtems_cv_HAS_MP = "no"; then |
---|
32 | AC_MSG_ERROR([multiprocessing requested but not supported]) |
---|
33 | fi |
---|
34 | ],[rtems_cv_HAS_MP="no";]) |
---|
35 | |
---|
36 | AM_CONDITIONAL(HAS_MP,[test x"$rtems_cv_HAS_MP" = x"yes"]) |
---|
37 | ]) |
---|
Note: See
TracBrowser
for help on using the repository browser.