Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / flight / targets / boards / revonano / firmware / Makefile
blob68cb18769ed1b186e144a44f448e43688d014297
2 # Copyright (C) 2015-2016, The LibrePilot Project, http://www.librepilot.org
3 # Copyright (C) 2009-2014, The OpenPilot Team, http://www.openpilot.org
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # for more details.
15 # You should have received a copy of the GNU General Public License along
16 # with this program; if not, write to the Free Software Foundation, Inc.,
17 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 #####
20 ifndef FLIGHT_MAKEFILE
21 $(error Top level Makefile must be used to build this target)
22 endif
24 include ../board-info.mk
25 include $(FLIGHT_ROOT_DIR)/make/firmware-defs.mk
27 # REVO C++ support
28 USE_CXX = YES
30 # ARM DSP library
31 USE_DSP_LIB ?= NO
33 # List of mandatory modules to include
34 MODULES += Sensors
35 MODULES += StateEstimation
36 MODULES += Airspeed
38 MODULES += Stabilization
39 MODULES += ManualControl
40 MODULES += Receiver
41 MODULES += Actuator
42 MODULES += GPS
43 MODULES += TxPID
44 MODULES += CameraStab
45 MODULES += CameraControl
46 MODULES += Battery
47 MODULES += FirmwareIAP
48 MODULES += PathPlanner
49 MODULES += PathFollower
50 #MODULES += Osd/osdoutout
51 #MODULES += Logging
52 MODULES += Telemetry
53 MODULES += Notify
55 OPTMODULES += AutoTune
56 OPTMODULES += ComUsbBridge
57 OPTMODULES += UAVOMSPBridge
58 OPTMODULES += UAVOMavlinkBridge
59 OPTMODULES += UAVOFrSKYSensorHubBridge
60 OPTMODULES += UAVOHottBridge
62 SRC += $(FLIGHTLIB)/notification.c
64 # Include all camera options
65 CDEFS += -DUSE_INPUT_LPF -DUSE_GIMBAL_LPF -DUSE_GIMBAL_FF
67 # Some diagnostics
68 CDEFS += -DDIAG_TASKS
70 # Misc options
71 CFLAGS += -ffast-math
73 # List C source files here (C dependencies are automatically generated).
74 # Use file-extension c for "c-only"-files
75 ifndef TESTAPP
76 ## Application Core
77 SRC += ../pios_usb_board_data.c
78 SRC += $(OPMODULEDIR)/System/systemmod.c
79 CPPSRC += $(OPSYSTEM)/revolution.cpp
80 SRC += $(OPSYSTEM)/pios_board.c
81 SRC += $(FLIGHTLIB)/alarms.c
82 SRC += $(FLIGHTLIB)/instrumentation.c
83 SRC += $(OPUAVTALK)/uavtalk.c
84 SRC += $(OPUAVOBJ)/uavobjectmanager.c
85 SRC += $(OPUAVOBJ)/uavobjectpersistence.c
86 SRC += $(OPUAVOBJ)/eventdispatcher.c
87 SRC += $(PIOSCOMMON)/pios_flash_eeprom.c
88 SRC += $(PIOSCOMMON)/pios_flashfs_objlist.c
90 ## Misc library functions
91 SRC += $(FLIGHTLIB)/paths.c
92 SRC += $(FLIGHTLIB)/plans.c
93 SRC += $(FLIGHTLIB)/WorldMagModel.c
94 SRC += $(FLIGHTLIB)/insgps13state.c
95 SRC += $(FLIGHTLIB)/lednotification.c
96 SRC += $(FLIGHTLIB)/auxmagsupport.c
97 ## UAVObjects
98 include ./UAVObjects.inc
99 SRC += $(UAVOBJSRC)
100 else
101 ## Test Code
102 SRC += $(OPTESTS)/test_common.c
103 SRC += $(OPTESTS)/$(TESTAPP).c
104 endif
106 # Optional component libraries
109 include $(FLIGHT_ROOT_DIR)/make/apps-defs.mk
110 include $(FLIGHT_ROOT_DIR)/make/common-defs.mk