cmake simplify uavcan linking

This commit is contained in:
Daniel Agar 2017-08-22 22:32:47 -04:00 committed by Lorenz Meier
parent fb7b33e755
commit fd6499baca
21 changed files with 5 additions and 118 deletions

View File

@ -176,14 +176,6 @@ set(config_extra_builtin_cmds
sercon
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -120,9 +120,3 @@ set(config_extra_builtin_cmds
set(config_io_board
)
set(config_extra_libs
)
set(config_io_extra_libs
)

View File

@ -201,14 +201,6 @@ set(config_io_board
px4io-v2
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -145,9 +145,6 @@ set(config_extra_builtin_cmds
sercon
)
set(config_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -86,11 +86,6 @@ set(config_extra_builtin_cmds
sercon
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -204,14 +204,6 @@ set(config_extra_builtin_cmds
sercon
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -71,8 +71,3 @@ set(config_module_list
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)

View File

@ -85,11 +85,6 @@ set(config_extra_builtin_cmds
sercon
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -174,12 +174,6 @@ set(config_io_board
px4io-v1
)
set(config_extra_libs
)
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -204,14 +204,6 @@ set(config_io_board
px4io-v2
)
#set(config_extra_libs
# uavcan
# uavcan_stm32_driver
# )
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -199,14 +199,6 @@ set(config_io_board
px4io-v2
)
#set(config_extra_libs
# uavcan
# uavcan_stm32_driver
# )
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -231,14 +231,6 @@ set(config_io_board
px4io-v2
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -220,14 +220,6 @@ set(config_extra_builtin_cmds
sercon
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -231,14 +231,6 @@ set(config_io_board
px4io-v2
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -226,14 +226,6 @@ set(config_extra_builtin_cmds
sercon
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -184,14 +184,6 @@ set(config_extra_builtin_cmds
sercon
)
set(config_extra_libs
uavcan
uavcan_stm32_driver
)
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -121,12 +121,6 @@ set(config_extra_builtin_cmds
set(config_io_board
)
set(config_extra_libs
)
set(config_io_extra_libs
)
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
PRIORITY "SCHED_PRIORITY_DEFAULT"

View File

@ -69,7 +69,6 @@ target_link_libraries(firmware_nuttx
${startup_libs}
${module_libraries}
${df_driver_libs}
${config_extra_libs}
${nuttx_bootloader_wrapers}
${link_libs}
-Wl,--end-group)

View File

@ -81,4 +81,4 @@ px4_add_module(
uavcan
)
## vim: set noet ft=cmake fenc=utf-8 ff=unix :
target_link_libraries(modules__uavcan uavcan uavcan_stm32_driver)

View File

@ -82,3 +82,5 @@ px4_add_module(
platforms__common
uavcan
)
target_link_libraries(modules__uavcanesc uavcan uavcan_stm32_driver)

View File

@ -82,3 +82,5 @@ px4_add_module(
platforms__common
uavcan
)
target_link_libraries(modules__uavcannode uavcan uavcan_stm32_driver)