projects
/
pub
/
lufa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
c5b721e
)
Bootloaders: Enable LTO to reduce compiled size.
author
Dean Camera
<dean@fourwalledcubicle.com>
Mon, 29 Jul 2019 11:30:06 +0000
(21:30 +1000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Mon, 29 Jul 2019 11:30:06 +0000
(21:30 +1000)
Bootloaders/CDC/makefile
patch
|
blob
|
blame
|
history
Bootloaders/DFU/makefile
patch
|
blob
|
blame
|
history
Bootloaders/HID/makefile
patch
|
blob
|
blame
|
history
Bootloaders/MassStorage/makefile
patch
|
blob
|
blame
|
history
Bootloaders/Printer/makefile
patch
|
blob
|
blame
|
history
LUFA/DoxygenPages/ChangeLog.txt
patch
|
blob
|
blame
|
history
diff --git
a/Bootloaders/CDC/makefile
b/Bootloaders/CDC/makefile
index
c618e9c
..
98fa430
100644
(file)
--- a/
Bootloaders/CDC/makefile
+++ b/
Bootloaders/CDC/makefile
@@
-22,6
+22,7
@@
SRC = $(TARGET).c Descriptors.c BootloaderAPI.c BootloaderAPITable.S $(
LUFA_PATH = ../../LUFA
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)
LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)
LUFA_PATH = ../../LUFA
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)
LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)
+LTO = Y
# Flash size and bootloader section sizes of the target, in KB. These must
# match the target's total FLASH size and the bootloader size set in the
# Flash size and bootloader section sizes of the target, in KB. These must
# match the target's total FLASH size and the bootloader size set in the
diff --git
a/Bootloaders/DFU/makefile
b/Bootloaders/DFU/makefile
index
dc54ba9
..
2859aa0
100644
(file)
--- a/
Bootloaders/DFU/makefile
+++ b/
Bootloaders/DFU/makefile
@@
-22,6
+22,7
@@
SRC = $(TARGET).c Descriptors.c BootloaderAPI.c BootloaderAPITable.S $(
LUFA_PATH = ../../LUFA
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)
LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)
LUFA_PATH = ../../LUFA
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)
LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)
+LTO = Y
# Flash size and bootloader section sizes of the target, in KB. These must
# match the target's total FLASH size and the bootloader size set in the
# Flash size and bootloader section sizes of the target, in KB. These must
# match the target's total FLASH size and the bootloader size set in the
diff --git
a/Bootloaders/HID/makefile
b/Bootloaders/HID/makefile
index
238823f
..
cd1b8b3
100644
(file)
--- a/
Bootloaders/HID/makefile
+++ b/
Bootloaders/HID/makefile
@@
-22,6
+22,7
@@
SRC = $(TARGET).c Descriptors.c $(LUFA_SRC_USB)
LUFA_PATH = ../../LUFA
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -DBOOT_START_ADDR=$(BOOT_START_OFFSET) -IConfig/
LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET)
LUFA_PATH = ../../LUFA
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -DBOOT_START_ADDR=$(BOOT_START_OFFSET) -IConfig/
LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET)
+LTO = Y
# Flash size and bootloader section sizes of the target, in KB. These must
# match the target's total FLASH size and the bootloader size set in the
# Flash size and bootloader section sizes of the target, in KB. These must
# match the target's total FLASH size and the bootloader size set in the
diff --git
a/Bootloaders/MassStorage/makefile
b/Bootloaders/MassStorage/makefile
index
2df2666
..
a5ce0a1
100644
(file)
--- a/
Bootloaders/MassStorage/makefile
+++ b/
Bootloaders/MassStorage/makefile
@@
-22,6
+22,7
@@
SRC = $(TARGET).c Descriptors.c BootloaderAPI.c BootloaderAPITable.S Li
LUFA_PATH = ../../LUFA
\r
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)
\r
LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)
\r
LUFA_PATH = ../../LUFA
\r
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)
\r
LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)
\r
+LTO = Y
\r
\r
# Flash size and bootloader section sizes of the target, in KB. These must
\r
# match the target's total FLASH size and the bootloader size set in the
\r
\r
# Flash size and bootloader section sizes of the target, in KB. These must
\r
# match the target's total FLASH size and the bootloader size set in the
\r
diff --git
a/Bootloaders/Printer/makefile
b/Bootloaders/Printer/makefile
index
744ba2a
..
1b0caeb
100644
(file)
--- a/
Bootloaders/Printer/makefile
+++ b/
Bootloaders/Printer/makefile
@@
-22,6
+22,7
@@
SRC = $(TARGET).c Descriptors.c BootloaderAPI.c BootloaderAPITable.S $(
LUFA_PATH = ../../LUFA
\r
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)
\r
LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)
\r
LUFA_PATH = ../../LUFA
\r
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -DBOOT_START_ADDR=$(BOOT_START_OFFSET)
\r
LD_FLAGS = -Wl,--section-start=.text=$(BOOT_START_OFFSET) $(BOOT_API_LD_FLAGS)
\r
+LTO = Y
\r
\r
# Flash size and bootloader section sizes of the target, in KB. These must
\r
# match the target's total FLASH size and the bootloader size set in the
\r
\r
# Flash size and bootloader section sizes of the target, in KB. These must
\r
# match the target's total FLASH size and the bootloader size set in the
\r
diff --git
a/LUFA/DoxygenPages/ChangeLog.txt
b/LUFA/DoxygenPages/ChangeLog.txt
index
55d5f55
..
a84ca3d
100644
(file)
--- a/
LUFA/DoxygenPages/ChangeLog.txt
+++ b/
LUFA/DoxygenPages/ChangeLog.txt
@@
-22,6
+22,7
@@
* - Reduced compiled size of the Endpoint_Discard_Stream() and Endpoint_Null_Stream() functions.
* - Library Applications:
* - Updated Printer class bootloader to not store 32-bit HEX parser flash offsets on small flash devices.
* - Reduced compiled size of the Endpoint_Discard_Stream() and Endpoint_Null_Stream() functions.
* - Library Applications:
* - Updated Printer class bootloader to not store 32-bit HEX parser flash offsets on small flash devices.
+ * - Enabled Link Time Optimizations (LTO) on bootloaders to reduce compiled size on newer versions of GCC.
*
* <b>Fixed:</b>
* - Core:
*
* <b>Fixed:</b>
* - Core: