From 42bb344e495c31988807f2e36d0f56389af5cad8 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Wed, 11 May 2011 14:22:35 +0000 Subject: 2011-05-11 Jennifer Averett * score/Makefile.am, score/preinstall.am, score/include/rtems/score/percpu.h, score/src/percpu.c, score/src/threadcreateidle.c: Modifications to restrict compilation of SMP only code to when SMP is enabled. Entire SMP specific files are disabled via Makefile.am. --- cpukit/score/Makefile.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cpukit/score/Makefile.am') diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am index bdbc3979a4..2242d82f05 100644 --- a/cpukit/score/Makefile.am +++ b/cpukit/score/Makefile.am @@ -36,8 +36,13 @@ include_rtems_score_HEADERS = include/rtems/score/address.h \ include/rtems/score/timestamp64.h include/rtems/score/tod.h \ include/rtems/score/tqdata.h include/rtems/score/userext.h \ include/rtems/score/watchdog.h include/rtems/score/wkspace.h \ - include/rtems/score/cpuopts.h include/rtems/score/basedefs.h \ + include/rtems/score/cpuopts.h include/rtems/score/basedefs.h + +if HAS_SMP +include_rtems_score_HEADERS += \ include/rtems/score/smplock.h include/rtems/score/smp.h +endif + if HAS_PTHREADS include_rtems_score_HEADERS += include/rtems/score/corespinlock.h \ @@ -91,7 +96,9 @@ if HAS_MP libscore_a_SOURCES += src/mpci.c src/objectmp.c src/threadmp.c endif +if HAS_SMP libscore_a_SOURCES += src/smp.c src/smplock.c +endif ## CORE_APIMUTEX_C_FILES libscore_a_SOURCES += src/apimutex.c src/apimutexallocate.c \ -- cgit v1.2.3