Skip to content

Commit 8eb546d

Browse files
Simplifies naming convention for RTOS version tag (#1719)
***NO_CI***
1 parent 3c39c65 commit 8eb546d

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

.vscode/cmake-variants.TEMPLATE.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"CHIBIOS_CONTRIB_REQUIRED": "OFF-default-ON-to-include_ChibiOS-Contrib-repository-in-the-build",
4343
"CHIBIOS_CONTRIB_SOURCE": "<path-to-local-ChibiOS-contrib-source-mind-the-forward-slash>",
4444
"FREERTOS_BOARD": "<valid-freertos-board-name-from-boards-collection>",
45-
"FREERTOS_VERSION": "<valid-freertos-version-if-empty-use-default-set-cmake>",
45+
"RTOS_VERSION": "<valid-rtos-git-branch-if-empty-use-default-cmake-setting>",
46+
"RTOS_SOURCE": "<path-to-rtos-source-mind-the-forward-slash>",
4647
"CMSIS_SOURCE": "<path-to-cmsis-source-mind-the-forward-slash>",
4748
"CMSIS_VERSION": "<valid-cmsis-version-if-empty-use-default-set-cmake>",
4849
"CHIBIOS_BOARD": "<valid-chibios-board-name-from-boards-collection>",

CMake/ChibiOS.CMakeLists.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ExternalProject_Add(
1515
PREFIX ChibiOS
1616
SOURCE_DIR ${CMAKE_BINARY_DIR}/ChibiOS_Source
1717
GIT_REPOSITORY https://github.com/nanoframework/chibios
18-
GIT_TAG ${CHIBIOS_GIT_TAG} # target specified branch
18+
GIT_TAG ${RTOS_VERSION} # target specified branch
1919
GIT_SHALLOW 1 # download only the tip of the branch, not the complete history
2020
TIMEOUT 10
2121
LOG_DOWNLOAD 1

CMake/FreeRTOS.CMakeLists.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ExternalProject_Add(
1515
PREFIX FreeRTOS
1616
SOURCE_DIR ${CMAKE_BINARY_DIR}/FreeRTOS_Source
1717
GIT_REPOSITORY https://github.com/FreeRTOS/FreeRTOS-Kernel.git
18-
GIT_TAG ${FREERTOS_VERSION_TAG} # target specified branch
18+
GIT_TAG ${RTOS_VERSION} # target specified branch
1919
GIT_SHALLOW 1 # download only the tip of the branch, not the complete history
2020
TIMEOUT 10
2121
LOG_DOWNLOAD 1

CMake/RTXRTOS.CMakeLists.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include(ExternalProject)
1515
PREFIX RTXRTOS
1616
SOURCE_DIR ${CMAKE_BINARY_DIR}/RTXRTOS_Source
1717
GIT_REPOSITORY https://github.com/ARM-software/CMSIS_5
18-
GIT_TAG master # target master branch
18+
GIT_TAG ${RTOS_VERSION} # target master branch
1919
GIT_SHALLOW 1 # download only the tip of the branch, not the complete history
2020
TIMEOUT 10
2121
LOG_DOWNLOAD 1

targets/CMSIS-OS/ChibiOS/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if(NO_RTOS_SOURCE_FOLDER)
5151
endif()
5252

5353
# ChibiOS version
54-
set(CHIBIOS_GIT_TAG "stable_19.1.x")
54+
set(RTOS_VERSION "stable_19.1.x")
5555
message(STATUS "RTOS is: CHIBIOS (latest available code from ${CHIBIOS_GIT_TAG})")
5656

5757
# need to setup a separate CMake project to download the code from the GitHub repository
@@ -75,7 +75,7 @@ if(NO_RTOS_SOURCE_FOLDER)
7575
PREFIX ChibiOS
7676
SOURCE_DIR ${CMAKE_BINARY_DIR}/ChibiOS_Source
7777
GIT_REPOSITORY https://github.com/nanoframework/chibios
78-
GIT_TAG ${CHIBIOS_GIT_TAG} # target specified branch
78+
GIT_TAG ${RTOS_VERSION} # target specified branch
7979
GIT_SHALLOW 1 # download only the tip of the branch, not the complete history
8080
TIMEOUT 10
8181
LOG_DOWNLOAD 1

targets/FreeRTOS/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if(NO_RTOS_SOURCE_FOLDER)
8181
PREFIX FreeRTOS
8282
SOURCE_DIR ${CMAKE_BINARY_DIR}/FreeRTOS_Source
8383
GIT_REPOSITORY https://github.com/FreeRTOS/FreeRTOS-Kernel.git
84-
GIT_TAG ${FREERTOS_VERSION_TAG} # target specified branch
84+
GIT_TAG ${RTOS_VERSION} # target specified branch
8585
GIT_SHALLOW 1 # download only the tip of the branch, not the complete history
8686
TIMEOUT 10
8787
LOG_DOWNLOAD 1

0 commit comments

Comments
 (0)