CMake: PRefix config opt with CONFIG_

This commit is contained in:
2025-10-01 11:02:28 -04:00
parent 942f9d8515
commit e9e273c012
4 changed files with 10 additions and 4 deletions
+7
View File
@@ -46,6 +46,13 @@ else()
set(CONFIG_ENABLE_DEBUG_LOCKS FALSE)
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(CONFIG_DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS ${DEBUG_QUTEX_DEADLOCK_TIMEOUT_MS})
+1 -1
View File
@@ -13,7 +13,7 @@
#define CONFIG_MRNTT_DEVMGR_REATTACHER_PERIOD_MS @MRNTT_DEVMGR_REATTACHER_PERIOD_MS@
/* World thread configuration */
#cmakedefine WORLD_USE_BODY_THREAD
#cmakedefine CONFIG_WORLD_USE_BODY_THREAD
/* Debug locking configuration */
#cmakedefine CONFIG_ENABLE_DEBUG_LOCKS
+2 -2
View File
@@ -18,7 +18,7 @@ Mind::Mind(void)
std::make_shared<MindThread>(ComponentThread::SIMULATOR, *this),
std::make_shared<MindThread>(ComponentThread::SUBCONSCIOUS, *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)
#endif
},
@@ -27,7 +27,7 @@ Mind::Mind(void)
subconscious(*this, componentThreads[2]),
body(*this, componentThreads[3]),
world(*this,
#ifndef WORLD_USE_BODY_THREAD
#ifndef CONFIG_WORLD_USE_BODY_THREAD
componentThreads[4]
#else
componentThreads[3]
-1
View File
@@ -4,4 +4,3 @@
between user errors and program exceptions.
* We're now getting to the point where we must implement locking. Go through the
driver libs and give them locking.
* Rename WORLD_USE_BODY_THREAD to have CONFIG_ prefix in config.h.