How do I define a new type of Linux bard target?
There is comprehensive documentation on porting AP to new STM32 boards (https://ardupilot.org/dev/docs/porting.html). Much of the configuration there happens through
hwdef.dat files. It appears that Linux builds use a different mechanism.
Tools/ardupilotwaf/boards.py has classes that correspond to different Linux targets (
bbbmini, etc.). These classes define different values for
CONFIG_HAL_BOARD_SUBTYPE for each build variant, and some of the .cpp sources contain conditional compilation around these values. Is this it? Is there more? Is there anything that spells out which sensors are present on each board, what busses they connect to, which IOs have what functions?
The context is trying to port AP to a custom BBB cape.