CMake: PRefix config opt with CONFIG_
This commit is contained in:
@@ -46,6 +46,13 @@ else()
|
|||||||
set(CONFIG_ENABLE_DEBUG_LOCKS FALSE)
|
set(CONFIG_ENABLE_DEBUG_LOCKS FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Set the world thread variable for config.h
|
||||||
|
if(WORLD_USE_BODY_THREAD)
|
||||||
|
set(CONFIG_WORLD_USE_BODY_THREAD TRUE)
|
||||||
|
else()
|
||||||
|
unset(CONFIG_WORLD_USE_BODY_THREAD)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Set the timeout variable for config.h
|
# Set the timeout variable for config.h
|
||||||
set(CONFIG_DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS ${DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS})
|
set(CONFIG_DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS ${DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS})
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
#define CONFIG_MRNTT_DEVMGR_REATTACHER_PERIOD_MS @MRNTT_DEVMGR_REATTACHER_PERIOD_MS@
|
#define CONFIG_MRNTT_DEVMGR_REATTACHER_PERIOD_MS @MRNTT_DEVMGR_REATTACHER_PERIOD_MS@
|
||||||
|
|
||||||
/* World thread configuration */
|
/* World thread configuration */
|
||||||
#cmakedefine WORLD_USE_BODY_THREAD
|
#cmakedefine CONFIG_WORLD_USE_BODY_THREAD
|
||||||
|
|
||||||
/* Debug locking configuration */
|
/* Debug locking configuration */
|
||||||
#cmakedefine CONFIG_ENABLE_DEBUG_LOCKS
|
#cmakedefine CONFIG_ENABLE_DEBUG_LOCKS
|
||||||
|
|||||||
+2
-2
@@ -18,7 +18,7 @@ Mind::Mind(void)
|
|||||||
std::make_shared<MindThread>(ComponentThread::SIMULATOR, *this),
|
std::make_shared<MindThread>(ComponentThread::SIMULATOR, *this),
|
||||||
std::make_shared<MindThread>(ComponentThread::SUBCONSCIOUS, *this),
|
std::make_shared<MindThread>(ComponentThread::SUBCONSCIOUS, *this),
|
||||||
std::make_shared<MindThread>(ComponentThread::BODY, *this)
|
std::make_shared<MindThread>(ComponentThread::BODY, *this)
|
||||||
#ifndef WORLD_USE_BODY_THREAD
|
#ifndef CONFIG_WORLD_USE_BODY_THREAD
|
||||||
, std::make_shared<MindThread>(ComponentThread::WORLD, *this)
|
, std::make_shared<MindThread>(ComponentThread::WORLD, *this)
|
||||||
#endif
|
#endif
|
||||||
},
|
},
|
||||||
@@ -27,7 +27,7 @@ Mind::Mind(void)
|
|||||||
subconscious(*this, componentThreads[2]),
|
subconscious(*this, componentThreads[2]),
|
||||||
body(*this, componentThreads[3]),
|
body(*this, componentThreads[3]),
|
||||||
world(*this,
|
world(*this,
|
||||||
#ifndef WORLD_USE_BODY_THREAD
|
#ifndef CONFIG_WORLD_USE_BODY_THREAD
|
||||||
componentThreads[4]
|
componentThreads[4]
|
||||||
#else
|
#else
|
||||||
componentThreads[3]
|
componentThreads[3]
|
||||||
|
|||||||
@@ -4,4 +4,3 @@
|
|||||||
between user errors and program exceptions.
|
between user errors and program exceptions.
|
||||||
* We're now getting to the point where we must implement locking. Go through the
|
* We're now getting to the point where we must implement locking. Go through the
|
||||||
driver libs and give them locking.
|
driver libs and give them locking.
|
||||||
* Rename WORLD_USE_BODY_THREAD to have CONFIG_ prefix in config.h.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user