Make list of supported internal module configurable per cmake option

Resolves #1159
This commit is contained in:
Raphael Coeffic
2021-11-29 09:00:59 +10:00
committed by Peter Feerick
parent eabb20a9ad
commit b8335b994f
4 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -357,10 +357,10 @@ if(INTERNAL_MODULE_SERIAL)
if("${PCBREV}" STREQUAL 2019 OR "${PCBREV}" STREQUAL ACCESS)
# defines existing internal modules
set(INTERNAL_MODULES PXX2)
set(INTERNAL_MODULES PXX2 CACHE STRING "Internal modules")
else()
# defines existing internal modules
set(INTERNAL_MODULES PXX1 PXX2 MULTI CRSF)
set(INTERNAL_MODULES PXX1;PXX2;MULTI;CRSF CACHE STRING "Internal modules")
endif()
add_definitions(-DINTERNAL_MODULE_SERIAL)