Optiboot / optiboot

Small and Fast Bootloader for Arduino and other Atmel AVR chips
Other
1.08k stars 396 forks source link

Add support for $EXTRA_CFLAGS. #373

Open g0mb4 opened 8 months ago

g0mb4 commented 8 months ago

This allows the user to add extra CFLAGS without modifying the Makefile.

For example:

ATMEGA_SUPPORT_PACK="$HOME/src/Atmel.ATmega_DFP.2.1.506"
EXTRA_CFLAGS="-B $ATMEGA_SUPPORT_PACK/gcc/dev/atmega328pb"
EXTRA_CFLAGS+=" -I$ATMEGA_SUPPORT_PACK/include"
make EXTRA_CFLAGS="$EXTRA_CFLAGS" atmega328pb AVR_FREQ=16000000L BAUD_RATE=115200 LED=B5 LED_START_FLASHES=0 UART=0