@@ -23,11 +23,11 @@ if(DEFINED TOOL_HEX2DFU_PREFIX)
2323 endif ()
2424endif ()
2525
26- # check if CHIBIOS_SOURCE was specified or if it's empty (default is empty)
27- set (NO_CHIBIOS_SOURCE TRUE )
28- if (CHIBIOS_SOURCE )
29- if (NOT "${CHIBIOS_SOURCE } " STREQUAL "" )
30- set (NO_CHIBIOS_SOURCE FALSE )
26+ # check if RTOS_SOURCE_FOLDER was specified or if it's empty (default is empty)
27+ set (NO_RTOS_SOURCE_FOLDER TRUE )
28+ if (RTOS_SOURCE_FOLDER )
29+ if (NOT "${RTOS_SOURCE_FOLDER } " STREQUAL "" )
30+ set (NO_RTOS_SOURCE_FOLDER FALSE )
3131 endif ()
3232endif ()
3333
@@ -39,7 +39,7 @@ if(CHIBIOS_CONTRIB_SOURCE)
3939 endif ()
4040endif ()
4141
42- if (NO_CHIBIOS_SOURCE )
42+ if (NO_RTOS_SOURCE_FOLDER )
4343 # no CHIBIOS source specified, download it from it's repo
4444
4545 # check for Git (needed here for advanced warning to user if it's not installed)
@@ -93,21 +93,21 @@ else()
9393 # ChibiOS source was specified
9494
9595 # sanity check is source path exists
96- if (EXISTS "${CHIBIOS_SOURCE } /" )
97- message (STATUS "RTOS is: ChibiOS (source from: ${CHIBIOS_SOURCE } )" )
96+ if (EXISTS "${RTOS_SOURCE_FOLDER } /" )
97+ message (STATUS "RTOS is: ChibiOS (source from: ${RTOS_SOURCE_FOLDER } )" )
9898
9999 # check if we already have the sources, no need to copy again
100100 NF_DIRECTORY_EXISTS_NOT_EMPTY(${CMAKE_BINARY_DIR} /ChibiOS_Source/ SOURCE_EXISTS)
101101
102102 if (NOT ${SOURCE_EXISTS} )
103- file (COPY "${CHIBIOS_SOURCE } /" DESTINATION "${CMAKE_BINARY_DIR} /ChibiOS_Source" )
103+ file (COPY "${RTOS_SOURCE_FOLDER } /" DESTINATION "${CMAKE_BINARY_DIR} /ChibiOS_Source" )
104104 else ()
105- message (STATUS "Using local cache of ChibiOS source from ${CHIBIOS_SOURCE } " )
105+ message (STATUS "Using local cache of ChibiOS source from ${RTOS_SOURCE_FOLDER } " )
106106 endif ()
107107
108108 set (CHIBIOS_INCLUDE_DIR ${CMAKE_BINARY_DIR} /ChibiOS_Source/include )
109109 else ()
110- message (FATAL_ERROR "Couldn't find ChibiOS source at ${CHIBIOS_SOURCE } /" )
110+ message (FATAL_ERROR "Couldn't find ChibiOS source at ${RTOS_SOURCE_FOLDER } /" )
111111 endif ()
112112
113113 # add ChibiOS as external project
0 commit comments