mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 18:53:37 +08:00
Removed old module list from nuttx firmware.
This commit is contained in:
@@ -1,32 +1,6 @@
|
|||||||
# a list of modules that will be linked to main
|
|
||||||
set(module_list
|
|
||||||
platforms__nuttx
|
|
||||||
platforms__nuttx__px4_layer
|
|
||||||
platforms__common
|
|
||||||
drivers__led
|
|
||||||
drivers__device
|
|
||||||
modules__systemlib
|
|
||||||
modules__uORB
|
|
||||||
)
|
|
||||||
|
|
||||||
if (${LABEL} STREQUAL "simple")
|
|
||||||
list(APPEND module_list
|
|
||||||
examples__px4_simple_app
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(${BOARD} STREQUAL "px4fmu-v2")
|
|
||||||
list(APPEND module_list
|
|
||||||
drivers__boards__px4fmu-v2
|
|
||||||
drivers__stm32
|
|
||||||
lib__mathlib__math__filter
|
|
||||||
lib__conversion
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
px4_nuttx_generate_builtin_commands(
|
px4_nuttx_generate_builtin_commands(
|
||||||
OUT builtin_commands.c
|
OUT builtin_commands.c
|
||||||
MODULE_LIST ${module_list})
|
MODULE_LIST ${module_libraries})
|
||||||
|
|
||||||
px4_nuttx_generate_romfs(OUT romfs.o
|
px4_nuttx_generate_romfs(OUT romfs.o
|
||||||
ROOT ROMFS/px4fmu_common)
|
ROOT ROMFS/px4fmu_common)
|
||||||
@@ -43,7 +17,7 @@ set_target_properties(firmware_nuttx PROPERTIES LINK_FLAGS ${main_link_flags})
|
|||||||
|
|
||||||
target_link_libraries(firmware_nuttx
|
target_link_libraries(firmware_nuttx
|
||||||
-Wl,--start-group
|
-Wl,--start-group
|
||||||
${module_list}
|
${module_libraries}
|
||||||
apps nuttx nosys m gcc
|
apps nuttx nosys m gcc
|
||||||
-Wl,--end-group)
|
-Wl,--end-group)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user