Skip to content

Commit

Permalink
G3P-X: Add conditional to switch between secure/non-secure FreeRTOS c…
Browse files Browse the repository at this point in the history
…onfig path
  • Loading branch information
jl-span committed Aug 2, 2024
1 parent 429930d commit b31125e
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Source/include.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
include_directories(${FW3_RTOS_DIR}/include)

set(FREERTOS_CONFIG_FILE_DIRECTORY
${FW3_APPLICATION_DIR}/Include
CACHE STRING "")
if(SECURE_APP
MATCHES
ON)
set(FREERTOS_CONFIG_FILE_DIRECTORY
${FW3_COMMON_APPLICATION_DIR}/Include/Configuration/Secure
CACHE STRING "")
else()
set(FREERTOS_CONFIG_FILE_DIRECTORY
${FW3_COMMON_APPLICATION_DIR}/Include/Configuration/NonSecure
CACHE STRING "")
endif()

set(FREERTOS_HEAP
${FW3_COMPONENTS_DIR}/Source/no_heap.c
CACHE STRING "")

0 comments on commit b31125e

Please sign in to comment.