summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorguo <[email protected]>2023-05-18 21:54:17 +0800
committerMan, Jianting (Meco) <[email protected]>2023-05-18 10:08:31 -0400
commit606ad9272bbc0e10b4c5f0fa1fdb27b80d373fd3 (patch)
treee7e0cacaaea53ebb6c88e1eb72ebdcc4647a6afd /bsp
parentca873fae308945ba9f3f1de4823b547791fe2c83 (diff)
[tools] llvm-arm reduce code size.
Diffstat (limited to 'bsp')
-rw-r--r--bsp/stm32/stm32l475-atk-pandora/rtconfig.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bsp/stm32/stm32l475-atk-pandora/rtconfig.py b/bsp/stm32/stm32l475-atk-pandora/rtconfig.py
index 6b54a18e1a..7b2ac58138 100644
--- a/bsp/stm32/stm32l475-atk-pandora/rtconfig.py
+++ b/bsp/stm32/stm32l475-atk-pandora/rtconfig.py
@@ -192,6 +192,7 @@ elif PLATFORM == 'llvm-arm':
OBJDUMP = PREFIX + 'objdump'
OBJCPY = PREFIX + 'objcopy'
DEVICE = ' --config armv7em_hard_fpv4_sp_d16.cfg'
+ DEVICE += ' -ffunction-sections -fdata-sections'
CFLAGS = DEVICE
CFLAGS += ' -mfloat-abi=hard -march=armv7em -mfpu=fpv4-sp-d16'
AFLAGS = ' -c' + DEVICE + ' -Wa,-mimplicit-it=thumb ' ## -x assembler-with-cpp