Skip to content

Commit 2ae67eb

Browse files
authored
Update CMakeLists.txt in RP2350 ports to fix FREERTOS_KERNEL_PATH (#20)
The CMakeLists.txt files in the RP2350 ports attempt to derive a value for FREERTOS_KERNEL_PATH. The existing code is based on the RP2040 port which is one level higher in the source tree directory hierarchy than the RP2350 ports. This commit changes the derivation of FREERTOS_KERNEL_PATH to account for the additional level in the directory hierarchy.
1 parent bae4c7a commit 2ae67eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

GCC/RP2350_ARM_NTZ/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (NOT TARGET _FreeRTOS_kernel_inclusion_marker)
1010
endif()
1111

1212
if (NOT FREERTOS_KERNEL_PATH)
13-
get_filename_component(FREERTOS_KERNEL_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../.. REALPATH)
13+
get_filename_component(FREERTOS_KERNEL_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../../.. REALPATH)
1414
endif ()
1515

1616
message(DEBUG "FREERTOS_KERNEL_PATH is ${FREERTOS_KERNEL_PATH}")

GCC/RP2350_RISC-V/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (NOT TARGET _FreeRTOS_kernel_inclusion_marker)
1010
endif()
1111

1212
if (NOT FREERTOS_KERNEL_PATH)
13-
get_filename_component(FREERTOS_KERNEL_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../.. REALPATH)
13+
get_filename_component(FREERTOS_KERNEL_PATH ${CMAKE_CURRENT_LIST_DIR}/../../../../.. REALPATH)
1414
endif ()
1515

1616
message(DEBUG "FREERTOS_KERNEL_PATH is ${FREERTOS_KERNEL_PATH}")

0 commit comments

Comments
 (0)