aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2019-07-29 22:30:46 +1000
committerDean Camera <dean@fourwalledcubicle.com>2019-07-29 22:30:46 +1000
commit5ada54b43299564d5fa52d62abfa9648a4b6c207 (patch)
tree5e9bbd670ec0cdabb08d4b5c460ae0af0e8922c9
parent6abb74f6b791acb04c9d149d1703213162d4126d (diff)
downloadlufa-5ada54b43299564d5fa52d62abfa9648a4b6c207.tar.gz
lufa-5ada54b43299564d5fa52d62abfa9648a4b6c207.tar.bz2
lufa-5ada54b43299564d5fa52d62abfa9648a4b6c207.zip
Bootloader: MassStorage: Enlarge AUX section to 8KB to fit with newer GCC versions.
-rw-r--r--Bootloaders/MassStorage/makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bootloaders/MassStorage/makefile b/Bootloaders/MassStorage/makefile
index a5ce0a16c..4a6e18e22 100644
--- a/Bootloaders/MassStorage/makefile
+++ b/Bootloaders/MassStorage/makefile
@@ -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)
# Check if the bootloader needs an AUX section, located before the real bootloader section to store some of the
-# bootloader code. This is required for 32KB and smaller devices, where the actual bootloader is 6KB but the maximum
+# bootloader code. This is required for 32KB and smaller devices, where the actual bootloader is 8KB but the maximum
# bootloader section size is 4KB. The actual usable application space will be reduced by 6KB for these devices.
ifeq ($(BOOT_SECTION_SIZE_KB),8)
CC_FLAGS += -DAUX_BOOT_SECTION_SIZE=0
else
- AUX_BOOT_SECTION_SIZE_KB = (6 - $(BOOT_SECTION_SIZE_KB))
+ AUX_BOOT_SECTION_SIZE_KB = (8 - $(BOOT_SECTION_SIZE_KB))
CC_FLAGS += -DAUX_BOOT_SECTION_SIZE='($(AUX_BOOT_SECTION_SIZE_KB) * 1024)'
LD_FLAGS += -Wl,--section-start=.boot_aux=$(call BOOT_SEC_OFFSET, (($(BOOT_SECTION_SIZE_KB) + $(AUX_BOOT_SECTION_SIZE_KB)) * 1024 - 16))