Browse Source

link drivers__device to nuttx_karch instead of nuttx_arch in protected build

On protected/kernel build the library would be karch.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
master
Jukka Laitinen 4 years ago committed by Daniel Agar
parent
commit
91b812fc42
  1. 9
      src/lib/drivers/device/CMakeLists.txt

9
src/lib/drivers/device/CMakeLists.txt

@ -53,8 +53,13 @@ px4_add_library(drivers__device
${SRCS_PLATFORM} ${SRCS_PLATFORM}
) )
# px4_spibus_initialize (stm32_spibus_initialize)
if (${PX4_PLATFORM} STREQUAL "nuttx") if (${PX4_PLATFORM} STREQUAL "nuttx")
target_link_libraries(drivers__device PRIVATE nuttx_arch) if (NOT DEFINED CONFIG_BUILD_FLAT)
target_link_libraries(drivers__device PRIVATE nuttx_karch)
else()
target_link_libraries(drivers__device PRIVATE nuttx_arch)
endif()
endif() endif()
target_link_libraries(drivers__device PRIVATE cdev) target_link_libraries(drivers__device PRIVATE px4_work_queue)

Loading…
Cancel
Save