Bootloader: MassStorage: Enlarge AUX section to 8KB to fit with newer GCC versions.
authorDean Camera <dean@fourwalledcubicle.com>
Mon, 29 Jul 2019 12:30:46 +0000 (22:30 +1000)
committerDean Camera <dean@fourwalledcubicle.com>
Mon, 29 Jul 2019 12:30:46 +0000 (22:30 +1000)
Bootloaders/MassStorage/makefile

index a5ce0a1..4a6e18e 100644 (file)
@@ -44,12 +44,12 @@ BOOT_API_LD_FLAGS    += $(call BOOT_SECTION_LD_FLAG, .apitable_jumptable,   Boot
 BOOT_API_LD_FLAGS    += $(call BOOT_SECTION_LD_FLAG, .apitable_signatures,  BootloaderAPI_Signatures,  8)\r
 \r
 # Check if the bootloader needs an AUX section, located before the real bootloader section to store some of the\r
-# bootloader code. This is required for 32KB and smaller devices, where the actual bootloader is 6KB but the maximum\r
+# bootloader code. This is required for 32KB and smaller devices, where the actual bootloader is 8KB but the maximum\r
 # bootloader section size is 4KB. The actual usable application space will be reduced by 6KB for these devices.\r
 ifeq ($(BOOT_SECTION_SIZE_KB),8)\r
   CC_FLAGS           += -DAUX_BOOT_SECTION_SIZE=0\r
 else\r
-  AUX_BOOT_SECTION_SIZE_KB = (6 - $(BOOT_SECTION_SIZE_KB))\r
+  AUX_BOOT_SECTION_SIZE_KB = (8 - $(BOOT_SECTION_SIZE_KB))\r
 \r
   CC_FLAGS           += -DAUX_BOOT_SECTION_SIZE='($(AUX_BOOT_SECTION_SIZE_KB) * 1024)'\r
   LD_FLAGS           += -Wl,--section-start=.boot_aux=$(call BOOT_SEC_OFFSET, (($(BOOT_SECTION_SIZE_KB) + $(AUX_BOOT_SECTION_SIZE_KB)) * 1024 - 16))\r