mirror of https://github.com/ArduPilot/ardupilot
70 lines
1.2 KiB
CMake
70 lines
1.2 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
|
|
drivers/rgbled
|
|
drivers/mb12xx
|
|
drivers/ll40ls
|
|
drivers/trone
|
|
drivers/mkblctrl
|
|
drivers/batt_smbus
|
|
|
|
#
|
|
# 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}
|
|
)
|
|
|
|
set(config_uavcan_num_ifaces 2)
|
|
|
|
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"
|
|
)
|