OSD Hud + LoRa radar (nearby aircrafts) (#4558)
[inav.git] / make / source.mk
blob30450ce7b3d8d3d92519b8f91983e2356ca151f2
1 COMMON_SRC = \
2 $(TARGET_DIR_SRC) \
3 main.c \
4 target/common_hardware.c \
5 build/assert.c \
6 build/build_config.c \
7 build/debug.c \
8 build/version.c \
9 common/bitarray.c \
10 common/calibration.c \
11 common/colorconversion.c \
12 common/crc.c \
13 common/encoding.c \
14 common/filter.c \
15 common/gps_conversion.c \
16 common/log.c \
17 common/logic_condition.c \
18 common/maths.c \
19 common/memory.c \
20 common/olc.c \
21 common/printf.c \
22 common/streambuf.c \
23 common/time.c \
24 common/typeconversion.c \
25 common/string_light.c \
26 config/config_eeprom.c \
27 config/config_streamer.c \
28 config/feature.c \
29 config/parameter_group.c \
30 drivers/adc.c \
31 drivers/buf_writer.c \
32 drivers/bus.c \
33 drivers/bus_busdev_i2c.c \
34 drivers/bus_busdev_spi.c \
35 drivers/bus_i2c_soft.c \
36 drivers/bus_spi.c \
37 drivers/display.c \
38 drivers/exti.c \
39 drivers/io.c \
40 drivers/io_pca9685.c \
41 drivers/light_led.c \
42 drivers/resource.c \
43 drivers/rx_nrf24l01.c \
44 drivers/rx_spi.c \
45 drivers/rx_xn297.c \
46 drivers/pitotmeter_adc.c \
47 drivers/pitotmeter_virtual.c \
48 drivers/pwm_esc_detect.c \
49 drivers/pwm_mapping.c \
50 drivers/pwm_output.c \
51 drivers/pinio.c \
52 drivers/rcc.c \
53 drivers/rx_pwm.c \
54 drivers/serial.c \
55 drivers/serial_uart.c \
56 drivers/sound_beeper.c \
57 drivers/stack_check.c \
58 drivers/system.c \
59 drivers/timer.c \
60 drivers/lights_io.c \
61 drivers/1-wire.c \
62 drivers/1-wire/ds_crc.c \
63 drivers/1-wire/ds2482.c \
64 drivers/temperature/ds18b20.c \
65 drivers/temperature/lm75.c \
66 drivers/pitotmeter_ms4525.c \
67 fc/cli.c \
68 fc/config.c \
69 fc/controlrate_profile.c \
70 fc/fc_core.c \
71 fc/fc_init.c \
72 fc/fc_tasks.c \
73 fc/fc_hardfaults.c \
74 fc/fc_msp.c \
75 fc/fc_msp_box.c \
76 fc/rc_smoothing.c \
77 fc/rc_adjustments.c \
78 fc/rc_controls.c \
79 fc/rc_curves.c \
80 fc/rc_modes.c \
81 fc/runtime_config.c \
82 fc/settings.c \
83 fc/stats.c \
84 flight/failsafe.c \
85 flight/hil.c \
86 flight/imu.c \
87 flight/mixer.c \
88 flight/pid.c \
89 flight/pid_autotune.c \
90 flight/rth_estimator.c \
91 flight/servos.c \
92 flight/wind_estimator.c \
93 io/beeper.c \
94 io/lights.c \
95 io/pwmdriver_i2c.c \
96 io/esc_serialshot.c \
97 io/piniobox.c \
98 io/serial.c \
99 io/serial_4way.c \
100 io/serial_4way_avrootloader.c \
101 io/serial_4way_stk500v2.c \
102 io/statusindicator.c \
103 io/rcdevice.c \
104 io/rcdevice_cam.c \
105 msp/msp_serial.c \
106 rx/crsf.c \
107 rx/eleres.c \
108 rx/fport.c \
109 rx/ibus.c \
110 rx/jetiexbus.c \
111 rx/msp.c \
112 rx/msp_override.c \
113 rx/nrf24_cx10.c \
114 rx/nrf24_inav.c \
115 rx/nrf24_h8_3d.c \
116 rx/nrf24_syma.c \
117 rx/nrf24_v202.c \
118 rx/pwm.c \
119 rx/rx.c \
120 rx/rx_spi.c \
121 rx/sbus.c \
122 rx/sbus_channels.c \
123 rx/spektrum.c \
124 rx/sumd.c \
125 rx/sumh.c \
126 rx/uib_rx.c \
127 rx/xbus.c \
128 scheduler/scheduler.c \
129 sensors/acceleration.c \
130 sensors/battery.c \
131 sensors/temperature.c \
132 sensors/boardalignment.c \
133 sensors/compass.c \
134 sensors/diagnostics.c \
135 sensors/gyro.c \
136 sensors/initialisation.c \
137 uav_interconnect/uav_interconnect_bus.c \
138 uav_interconnect/uav_interconnect_rangefinder.c \
139 blackbox/blackbox.c \
140 blackbox/blackbox_encoding.c \
141 blackbox/blackbox_io.c \
142 cms/cms.c \
143 cms/cms_menu_battery.c \
144 cms/cms_menu_blackbox.c \
145 cms/cms_menu_builtin.c \
146 cms/cms_menu_imu.c \
147 cms/cms_menu_ledstrip.c \
148 cms/cms_menu_misc.c \
149 cms/cms_menu_navigation.c \
150 cms/cms_menu_osd.c \
151 cms/cms_menu_saveexit.c \
152 cms/cms_menu_vtx_smartaudio.c \
153 cms/cms_menu_vtx_tramp.c \
154 cms/cms_menu_vtx_ffpv.c \
155 drivers/display_ug2864hsweg01.c \
156 drivers/rangefinder/rangefinder_hcsr04.c \
157 drivers/rangefinder/rangefinder_hcsr04_i2c.c \
158 drivers/rangefinder/rangefinder_srf10.c \
159 drivers/rangefinder/rangefinder_vl53l0x.c \
160 drivers/rangefinder/rangefinder_virtual.c \
161 drivers/opflow/opflow_fake.c \
162 drivers/opflow/opflow_virtual.c \
163 drivers/vtx_common.c \
164 io/rangefinder_msp.c \
165 io/rangefinder_benewake.c \
166 io/opflow_cxof.c \
167 io/opflow_msp.c \
168 io/dashboard.c \
169 io/displayport_max7456.c \
170 io/displayport_msp.c \
171 io/displayport_oled.c \
172 io/displayport_hott.c \
173 io/gps.c \
174 io/gps_ublox.c \
175 io/gps_nmea.c \
176 io/gps_naza.c \
177 io/ledstrip.c \
178 io/osd_hud.c \
179 io/osd.c \
180 navigation/navigation.c \
181 navigation/navigation_fixedwing.c \
182 navigation/navigation_fw_launch.c \
183 navigation/navigation_geo.c \
184 navigation/navigation_multicopter.c \
185 navigation/navigation_pos_estimator.c \
186 navigation/navigation_pos_estimator_agl.c \
187 navigation/navigation_pos_estimator_flow.c \
188 sensors/barometer.c \
189 sensors/pitotmeter.c \
190 sensors/rangefinder.c \
191 sensors/opflow.c \
192 telemetry/crsf.c \
193 telemetry/frsky.c \
194 telemetry/frsky_d.c \
195 telemetry/hott.c \
196 telemetry/ibus_shared.c \
197 telemetry/ibus.c \
198 telemetry/ltm.c \
199 telemetry/mavlink.c \
200 telemetry/msp_shared.c \
201 telemetry/smartport.c \
202 telemetry/telemetry.c \
203 io/vtx.c \
204 io/vtx_string.c \
205 io/vtx_smartaudio.c \
206 io/vtx_tramp.c \
207 io/vtx_ffpv24g.c \
208 io/vtx_control.c
210 COMMON_DEVICE_SRC = \
211 $(CMSIS_SRC) \
212 $(DEVICE_STDPERIPH_SRC)
214 TARGET_SRC := $(STARTUP_SRC) $(COMMON_DEVICE_SRC) $(COMMON_SRC) $(MCU_COMMON_SRC) $(TARGET_SRC)
216 #excludes
217 TARGET_SRC := $(filter-out $(MCU_EXCLUDES), $(TARGET_SRC))
219 ifneq ($(filter ONBOARDFLASH,$(FEATURES)),)
220 TARGET_SRC += \
221 drivers/flash_m25p16.c \
222 io/flashfs.c
223 endif
225 ifneq ($(filter SDCARD,$(FEATURES)),)
226 TARGET_SRC += \
227 drivers/sdcard.c \
228 drivers/sdcard_spi.c \
229 drivers/sdcard_standard.c \
230 io/asyncfatfs/asyncfatfs.c \
231 io/asyncfatfs/fat_standard.c
232 endif
234 ifneq ($(filter VCP,$(FEATURES)),)
235 TARGET_SRC += $(VCP_SRC)
236 endif
238 # Search path and source files for the ST stdperiph library
239 VPATH := $(VPATH):$(STDPERIPH_DIR)/src