Break out flag variables into multiple lines
This commit is contained in:
parent
2d06c48a04
commit
9b30ef6db6
1 changed files with 11 additions and 2 deletions
13
Makefile
13
Makefile
|
@ -5,13 +5,22 @@ CURL_FLAGS := -O -\# --fail --location --tlsv1.3 --proto =https --max-time 300
|
||||||
TARGET = blink
|
TARGET = blink
|
||||||
TARGET_MCU?=CH32V003
|
TARGET_MCU?=CH32V003
|
||||||
NEWLIB=/usr/arm-none-eabi/include
|
NEWLIB=/usr/arm-none-eabi/include
|
||||||
CFLAGS=-g -Os -flto -ffunction-sections -fdata-sections -fmessage-length=0 -msmall-data-limit=8
|
|
||||||
LDFLAGS+=-Wl,--print-memory-usage -Wl,-Map=$(TARGET).map,--build-id=none
|
|
||||||
TOOL_PREFIX := riscv64-linux-gnu
|
TOOL_PREFIX := riscv64-linux-gnu
|
||||||
CC := $(TOOL_PREFIX)-gcc
|
CC := $(TOOL_PREFIX)-gcc
|
||||||
OBJDUMP := $(TOOL_PREFIX)-objdump
|
OBJDUMP := $(TOOL_PREFIX)-objdump
|
||||||
OBJCOPY := $(TOOL_PREFIX)-objcopy
|
OBJCOPY := $(TOOL_PREFIX)-objcopy
|
||||||
|
|
||||||
|
CFLAGS = -g \
|
||||||
|
-Os \
|
||||||
|
-flto \
|
||||||
|
-ffunction-sections \
|
||||||
|
-fdata-sections \
|
||||||
|
-fmessage-length=0 \
|
||||||
|
-msmall-data-limit=8
|
||||||
|
|
||||||
|
LDFLAGS = -Wl,--print-memory-usage \
|
||||||
|
-Wl,-Map=$(TARGET).map,--build-id=none
|
||||||
|
|
||||||
EXTFLAGS := -march=rv32ec \
|
EXTFLAGS := -march=rv32ec \
|
||||||
-mabi=ilp32e \
|
-mabi=ilp32e \
|
||||||
-DCH32V003=1 \
|
-DCH32V003=1 \
|
||||||
|
|
Loading…
Add table
Reference in a new issue