diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-12-11 12:57:46 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-12-11 12:57:46 +0100 |
commit | 63a231d95b4bafd5653941917e380a18d4f20f64 (patch) | |
tree | 9626cdc145f34f91cf169674eae741e82d8666c5 /src/arch/msp430fr5994lp | |
parent | 08012d944e822b80893ee797eadff2a7c20fee2b (diff) |
msp430fr5994: Add optional -mlarge for >48kB code size
Diffstat (limited to 'src/arch/msp430fr5994lp')
-rw-r--r-- | src/arch/msp430fr5994lp/Makefile.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/arch/msp430fr5994lp/Makefile.inc b/src/arch/msp430fr5994lp/Makefile.inc index 8c78d1b..4d1009f 100644 --- a/src/arch/msp430fr5994lp/Makefile.inc +++ b/src/arch/msp430fr5994lp/Makefile.inc @@ -9,6 +9,10 @@ INCLUDES += -I/opt/msp430/ti/msp430-gcc-full-linux-5.0.0.36/include COMMON_FLAGS += -mcpu=${CPU} -mmcu=${MCU} -DMULTIPASS_ARCH_msp430fr5994lp COMMON_FLAGS += -DMULTIPASS_ARCH_HAS_I2C +ifneq (${msp430_large}, ) + COMMON_FLAGS += -mcode-region=either -mlarge +endif + # LTO seems to be broken. CC = /opt/msp430/ti/msp430-gcc-full-linux-5.0.0.36/bin/msp430-elf-gcc |