I'm working on a boards.txt file and am trying to keep the number of Board menu entries to a minimum. I have multiple bootloader files, for example:
- ariadne_atmega328_16mhz_blink.hex
- ariadne_atmega328_16mhz_noblink.hex
- ariadne_atmega328_8mhz_blink.hex
- ariadne_atmega328_8mhz_noblink.hex
In the Board menu I just want one ATmega328P entry, then two custom board menus:
- Clock: 16Mhz/8Mhz
- Bootloader Blink: Enable/Disable
So far I can't see any way to use the values of both the menus to determine which bootloader file is chosen by boards.txt. The alternative is to have two Boards menu entries, ATmega328P 16Mhz and ATmega328P 8Mhz which doesn't seem like a big deal but there are multiple MCUs supported as well as another custom menu(I simplified the example a bit to keep it short) so there could end up being a lot of Boards added. So I'm wondering if anyone has any ideas on how to do this. Thanks, Per