diff --git a/platforms/nuttx/src/px4/nxp/imxrt/board_reset/CMakeLists.txt b/platforms/nuttx/src/px4/nxp/imxrt/board_reset/CMakeLists.txt index f271604610..06ccd08203 100644 --- a/platforms/nuttx/src/px4/nxp/imxrt/board_reset/CMakeLists.txt +++ b/platforms/nuttx/src/px4/nxp/imxrt/board_reset/CMakeLists.txt @@ -34,3 +34,10 @@ px4_add_library(arch_board_reset board_reset.cpp ) + +# up_systemreset +if (NOT DEFINED CONFIG_BUILD_FLAT) + target_link_libraries(arch_board_reset PRIVATE nuttx_karch) +else() + target_link_libraries(arch_board_reset PRIVATE nuttx_arch) +endif() diff --git a/platforms/nuttx/src/px4/nxp/kinetis/board_reset/CMakeLists.txt b/platforms/nuttx/src/px4/nxp/kinetis/board_reset/CMakeLists.txt index f271604610..06ccd08203 100644 --- a/platforms/nuttx/src/px4/nxp/kinetis/board_reset/CMakeLists.txt +++ b/platforms/nuttx/src/px4/nxp/kinetis/board_reset/CMakeLists.txt @@ -34,3 +34,10 @@ px4_add_library(arch_board_reset board_reset.cpp ) + +# up_systemreset +if (NOT DEFINED CONFIG_BUILD_FLAT) + target_link_libraries(arch_board_reset PRIVATE nuttx_karch) +else() + target_link_libraries(arch_board_reset PRIVATE nuttx_arch) +endif() diff --git a/platforms/nuttx/src/px4/nxp/s32k1xx/board_reset/CMakeLists.txt b/platforms/nuttx/src/px4/nxp/s32k1xx/board_reset/CMakeLists.txt index f271604610..06ccd08203 100644 --- a/platforms/nuttx/src/px4/nxp/s32k1xx/board_reset/CMakeLists.txt +++ b/platforms/nuttx/src/px4/nxp/s32k1xx/board_reset/CMakeLists.txt @@ -34,3 +34,10 @@ px4_add_library(arch_board_reset board_reset.cpp ) + +# up_systemreset +if (NOT DEFINED CONFIG_BUILD_FLAT) + target_link_libraries(arch_board_reset PRIVATE nuttx_karch) +else() + target_link_libraries(arch_board_reset PRIVATE nuttx_arch) +endif() diff --git a/platforms/nuttx/src/px4/rpi/rpi_common/board_reset/CMakeLists.txt b/platforms/nuttx/src/px4/rpi/rpi_common/board_reset/CMakeLists.txt index c4163fb3fa..d1fb1802c3 100644 --- a/platforms/nuttx/src/px4/rpi/rpi_common/board_reset/CMakeLists.txt +++ b/platforms/nuttx/src/px4/rpi/rpi_common/board_reset/CMakeLists.txt @@ -34,3 +34,10 @@ px4_add_library(arch_board_reset board_reset.cpp ) + +# up_systemreset +if (NOT DEFINED CONFIG_BUILD_FLAT) + target_link_libraries(arch_board_reset PRIVATE nuttx_karch) +else() + target_link_libraries(arch_board_reset PRIVATE nuttx_arch) +endif() diff --git a/platforms/nuttx/src/px4/stm/stm32_common/board_reset/CMakeLists.txt b/platforms/nuttx/src/px4/stm/stm32_common/board_reset/CMakeLists.txt index f271604610..06ccd08203 100644 --- a/platforms/nuttx/src/px4/stm/stm32_common/board_reset/CMakeLists.txt +++ b/platforms/nuttx/src/px4/stm/stm32_common/board_reset/CMakeLists.txt @@ -34,3 +34,10 @@ px4_add_library(arch_board_reset board_reset.cpp ) + +# up_systemreset +if (NOT DEFINED CONFIG_BUILD_FLAT) + target_link_libraries(arch_board_reset PRIVATE nuttx_karch) +else() + target_link_libraries(arch_board_reset PRIVATE nuttx_arch) +endif()