Separate i2c and spi board bus configuration into and own library for protected build target

This info is needed on both kernel and user sides, and is just data.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2022-03-17 08:01:51 +01:00
committed by Beat Küng
parent 543c7bd0c5
commit 4658a627d7
2 changed files with 17 additions and 3 deletions
@@ -29,6 +29,11 @@ add_library(px4_board_ctrl
add_dependencies(px4_board_ctrl nuttx_context px4_kernel_builtin_list_target)
target_link_libraries(px4_layer
PUBLIC
board_bus_info
)
# Build the kernel side px4_kernel_layer
add_library(px4_kernel_layer
@@ -43,6 +48,11 @@ target_link_libraries(px4_kernel_layer
nuttx_kmm
)
target_link_libraries(px4_kernel_layer
PUBLIC
board_bus_info
)
if (DEFINED PX4_CRYPTO)
target_link_libraries(px4_kernel_layer PUBLIC crypto_backend)
endif()