Skip to content

Commit

Permalink
Pin FreeRTOS version and fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-yolabs authored and linkmonitor committed Mar 2, 2023
1 parent bfe1de8 commit b8732fc
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions extra/cmake/freertos.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ include(FetchContent)
FetchContent_Declare(
freertos
GIT_REPOSITORY https://github.com/FreeRTOS/FreeRTOS-Kernel
GIT_TAG main
GIT_TAG V10.5.1
)

file(GENERATE
OUTPUT FreeRTOSConfig.h
CONTENT
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/FreeRTOSConfig.h
[[
#ifndef FREERTOSCONFIG_H
#define FREERTOSCONFIG_H
Expand Down Expand Up @@ -36,11 +34,7 @@ file(GENERATE
]]
)

add_library(freertos_config INTERFACE)
target_include_directories(freertos_config
SYSTEM INTERFACE
${CMAKE_CURRENT_BINARY_DIR}
)
set(FREERTOS_CONFIG_FILE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} CACHE STRING "")
set(FREERTOS_HEAP 4 CACHE STRING "")
set(FREERTOS_PORT GCC_POSIX CACHE STRING "")

Expand Down

0 comments on commit b8732fc

Please sign in to comment.