mirror of https://github.com/ArduPilot/ardupilot
62 lines
1.0 KiB
CMake
62 lines
1.0 KiB
CMake
include(nuttx/px4_impl_nuttx)
|
|
|
|
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-none-eabi.cmake)
|
|
|
|
set(config_module_list
|
|
platforms/common
|
|
platforms/nuttx
|
|
platforms/nuttx/px4_layer
|
|
modules/param
|
|
#
|
|
# Board support modules
|
|
#
|
|
drivers/device
|
|
drivers/stm32
|
|
drivers/stm32/adc
|
|
drivers/stm32/tone_alarm
|
|
drivers/led
|
|
drivers/px4fmu
|
|
|
|
#
|
|
# System commands
|
|
#
|
|
systemcmds/bl_update
|
|
systemcmds/mixer
|
|
systemcmds/perf
|
|
systemcmds/reboot
|
|
systemcmds/top
|
|
systemcmds/nshterm
|
|
systemcmds/mtd
|
|
systemcmds/ver
|
|
systemcmds/usb_connected
|
|
systemcmds/otp
|
|
|
|
#
|
|
# Library modules
|
|
#
|
|
modules/systemlib
|
|
modules/systemlib/mixer
|
|
modules/uORB
|
|
)
|
|
|
|
set(config_extra_builtin_cmds
|
|
sercon
|
|
ArduPilot
|
|
)
|
|
|
|
set(config_extra_libs
|
|
${APM_PROGRAM_LIB}
|
|
)
|
|
|
|
add_custom_target(sercon)
|
|
set_target_properties(sercon PROPERTIES
|
|
MAIN "sercon"
|
|
STACK "2048"
|
|
)
|
|
|
|
add_custom_target(ArduPilot)
|
|
set_target_properties(ArduPilot PROPERTIES
|
|
MAIN "ArduPilot"
|
|
STACK "4096"
|
|
)
|