NicoHood / HoodLoader2

16u2 Bootloader to reprogram 16u2 + 328/2560 with Arduino IDE
http://www.nicohood.de
734 stars 186 forks source link

Configuration variables cannot be set/overridden by target specific variable values #98

Open Virtual-Java opened 3 years ago

Virtual-Java commented 3 years ago

I'm trying to implement a makefile inspired by these used in optiboot bootloader. https://github.com/Optiboot/optiboot/tree/master/optiboot/bootloaders/optiboot

Then I want to create a makeall script, that compiles the hexfiles for all microcontrollers, which will simplify to generate multiple hexfiles for different configurations of my Multihoodloader. https://github.com/Virtual-Java/HoodLoader2/tree/multihoodloader/avr/bootloaders/HexFiles Furthermore it may be useful for users of your Hoodloader2 too.

It is not possible to set/override LUFA configuration variables by target specific variable values. e.g. the following target specific expression in makefile will be ignored. Instead of the target specific value the globally declared value will be taken when calling "make atmega8u2". https://github.com/abcminiuser/lufa/issues/175

Maybe you can help me to solve this issue.