diff --git a/avr/bootloaders/optiboot_flash/Makefile b/avr/bootloaders/optiboot_flash/Makefile index 37cdf32d8..d5684ea37 100755 --- a/avr/bootloaders/optiboot_flash/Makefile +++ b/avr/bootloaders/optiboot_flash/Makefile @@ -196,6 +196,8 @@ ifeq ($(SUPPORT_EEPROM),1) SUPPORT_EEPROM_CMD = -DSUPPORT_EEPROM=1 dummy = FORCE endif +else +SUPPORT_EEPROM=0 endif # Ability to copy flash pages @@ -204,6 +206,8 @@ ifeq ($(COPY_FLASH_PAGES),1) COPY_FLASH_PAGES_CMD = -DCOPY_FLASH_PAGES=1 dummy = FORCE endif +else +COPY_FLASH_PAGES=0 endif diff --git a/avr/bootloaders/optiboot_flash/optiboot_flash.c b/avr/bootloaders/optiboot_flash/optiboot_flash.c index bd502d7ff..fabadc68f 100755 --- a/avr/bootloaders/optiboot_flash/optiboot_flash.c +++ b/avr/bootloaders/optiboot_flash/optiboot_flash.c @@ -461,7 +461,7 @@ void pre_main(void) { asm volatile ( " rjmp 1f\n" " rjmp do_spm\n" -#ifdef COPY_FLASH_PAGES_FNC +#ifdef COPY_FLASH_PAGES " rjmp copy_flash_pages\n" #endif "1:\n"