cdev: build & link fixes for NuttX protected build

- Always link to nuttx_fs for register/unregister_driver calls

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-12-13 22:52:36 -05:00
committed by Daniel Agar
parent acdcc35392
commit 25c10eb124
+4
View File
@@ -51,6 +51,10 @@ px4_add_library(cdev
)
target_compile_options(cdev PRIVATE ${MAX_CUSTOM_OPT_LEVEL})
if (${PX4_PLATFORM} STREQUAL "nuttx")
target_link_libraries(cdev PRIVATE nuttx_fs) # register/unregister driver
endif()
if(PX4_TESTING)
add_subdirectory(test)
endif()