board_pins: Use an explicit parameter to specify mcu name(s)

Add an 'mcu' option to the board_pins config and use that to specify
the name of the mcu to apply the aliases to.  Support applying the
aliases to multiple mcus.

Add support for any number of options starting with an "aliases_"
prefix.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-11-20 11:36:36 -05:00
parent 37b475815e
commit bdd938b578
4 changed files with 43 additions and 25 deletions

View file

@ -124,7 +124,8 @@ aliases:
SERVO_0=P9_14, SERVO_1=P9_16,
[board_pins host]
aliases:
mcu: host
aliases_foo:
# Host aliases for Linux MCU
HOST_X2_STOP=gpio30, HOST_Y2_STOP=gpio113, HOST_Z2_STOP=gpio4
# Thermistors