I am trying to build minimalistic image for F405AIO with only needed features selected.
For some reason, despite not selecting DroneCAN (which I consider obvious for FC without CAN) it is beeing selected at some build step anyway leading to build error.
Not sure why DroneCAN appears on the selected features list, as it was not enabled at all.
EKF3, EKF3_OPTFLOW, BARO_TEMPCAL, MSP_BARO, SPL06, DroneCAN, CompassLearn, FixedYawCal, QMC5883L, MODE_SPORT, ESC_EXTENDED_TELM, FILESYSTEM_MISSION, FILESYSTEM_PARAM, FILESYSTEM_ROMFS, FILESYSTEM_SYS, UBLOX, BatchSampler, HarmonicNotches, AP_MAVLINK_FTP_ENABLED, FENCEPOINT_PROTOCOL, MAVLINK_MSG_MISSION_REQUEST, MAVLINK_MSG_RC_CHANNELS_RAW, MAV_DEVICE_OP, MAV_MSG_SERIAL_CONTROL, REQUEST_AUTOPILOT_CAPA, MSP, MSP_COMPASS, MSP_DISPLAYPORT, MSP_GPS, MSP_OPTICALFLOW, MSP_RANGEFINDER, LED_CONTROL, NOTIFY_NEOPIXEL, NOTIFY_PROFILED, PLAY_TUNE, TONEALARM, OSD, OSD_EXTENDED_LINK_STATS, OSD_PARAM, OSD_SIDEBARS, BOOTLOADER_FLASHING, COMPASS_CAL, CUSTOM_ROTATIONS, Logging, SDCARD_FORMATTING, RC_CRSF, RC_Protocol, RSSI, RANGEFINDER, RANGEFINDER_MAVLINK, FENCE, AIRSPEED, OPTICALFLOW, RPM, RPM_ESC_TELEM, RPM_HARMONIC_NOTCH, CRSF, FrSky, FrSky SPort, FrSky SPort PassThrough, QUAD
and that leads to build error:
In file included from ../build_src/libraries/AP_DroneCAN/AP_DroneCAN.h:23,
from ../build_src/libraries/AP_BattMonitor/AP_BattMonitor_DroneCAN.h:6,
from ../build_src/libraries/AP_BattMonitor/AP_BattMonitor_DroneCAN.cpp:7:
../build_src/libraries/AP_DroneCAN/AP_Canard_iface.h:4:10: fatal error: canard/interface.h: No such file or directory
4 | #include <canard/interface.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.