1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/fe310: change default optimization to "-Os"

Also moves the option to CFLAGS_OPT.
This commit is contained in:
Kaspar Schleiser 2019-10-21 11:27:21 +02:00
parent 3564546a5e
commit 1193b0b1f8

View File

@ -4,8 +4,8 @@ export TARGET_ARCH ?= riscv-none-embed
# define build specific options
CFLAGS_CPU = -march=rv32imac -mabi=ilp32 -mcmodel=medlow -msmall-data-limit=8
CFLAGS_LINK = -nostartfiles -ffunction-sections -fdata-sections
CFLAGS_DBG ?= -g3 -Og
#CFLAGS_OPT ?= -Os
CFLAGS_DBG ?= -g3
CFLAGS_OPT ?= -Os
export LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts
export LINKER_SCRIPT ?= $(CPU_MODEL).ld