[rtems commit] bsp/atsam: Allow to change optimization settings.

Sebastian Huber sebh at rtems.org
Thu Oct 12 07:00:14 UTC 2017


Module:    rtems
Branch:    master
Commit:    16fcd56a42dfdef514350ab6297137e2c863afa1
Changeset: http://git.rtems.org/rtems/commit/?id=16fcd56a42dfdef514350ab6297137e2c863afa1

Author:    Christian Mauderer <Christian.Mauderer at embedded-brains.de>
Date:      Wed Oct 11 15:38:14 2017 +0200

bsp/atsam: Allow to change optimization settings.

Allow to overwrite the optimization settings during configuration.

---

 c/src/lib/libbsp/arm/atsam/make/custom/atsamv.cfg | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/arm/atsam/make/custom/atsamv.cfg b/c/src/lib/libbsp/arm/atsam/make/custom/atsamv.cfg
index 06892f9..0a2437f 100644
--- a/c/src/lib/libbsp/arm/atsam/make/custom/atsamv.cfg
+++ b/c/src/lib/libbsp/arm/atsam/make/custom/atsamv.cfg
@@ -4,7 +4,6 @@ RTEMS_CPU = arm
 
 CPU_CFLAGS = -mthumb -mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard
 
-CFLAGS_OPTIMIZE_V = -O2 -g
-CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+CFLAGS_OPTIMIZE_V ?= -O2 -g -ffunction-sections -fdata-sections
 
 LDFLAGS = -Wl,--gc-sections



More information about the vc mailing list