mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
cpu: make CFLAGS_DBG configurable
This commit is contained in:
parent
a397c79187
commit
d853dd63c1
@ -37,7 +37,7 @@ endif
|
||||
# define build specific options
|
||||
export CFLAGS_CPU = -mmcu=atmega328p $(CFLAGS_FPU)
|
||||
export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
|
||||
export CFLAGS_DBG = -ggdb -g3
|
||||
export CFLAGS_DBG ?= -ggdb -g3
|
||||
export CFLAGS_OPT ?= -Os
|
||||
|
||||
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
|
||||
|
@ -36,7 +36,7 @@ endif
|
||||
# define build specific options
|
||||
export CFLAGS_CPU = -mmcu=atmega2560 $(CFLAGS_FPU)
|
||||
export CFLAGS_LINK = -fno-builtin -fshort-enums
|
||||
export CFLAGS_DBG = -ggdb -g3
|
||||
export CFLAGS_DBG ?= -ggdb -g3
|
||||
export CFLAGS_OPT ?= -Os
|
||||
|
||||
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
|
||||
|
@ -6,7 +6,7 @@ TERMPROG ?= $(RIOTBASE)/dist/tools/pyterm/pyterm
|
||||
|
||||
export CFLAGS_CPU = -mcpu=arm7tdmi-s
|
||||
export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
|
||||
export CFLAGS_DBG = -ggdb -g3
|
||||
export CFLAGS_DBG ?= -ggdb -g3
|
||||
export CFLAGS_OPT ?= -Os
|
||||
|
||||
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
|
||||
|
@ -46,7 +46,7 @@ endif
|
||||
# define build specific options
|
||||
export CFLAGS_CPU = -mmcu=atmega1281 $(CFLAGS_FPU)
|
||||
export CFLAGS_LINK = -fno-builtin -fshort-enums
|
||||
export CFLAGS_DBG = -ggdb -g3
|
||||
export CFLAGS_DBG ?= -ggdb -g3
|
||||
export CFLAGS_OPT ?= -Os
|
||||
|
||||
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
|
||||
|
@ -9,7 +9,7 @@ ifneq (llvm,$(TOOLCHAIN))
|
||||
export CFLAGS_CPU += -mno-thumb-interwork
|
||||
endif
|
||||
export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
|
||||
export CFLAGS_DBG = -ggdb -g3
|
||||
export CFLAGS_DBG ?= -ggdb -g3
|
||||
export CFLAGS_OPT ?= -Os
|
||||
|
||||
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
|
||||
|
@ -4,7 +4,7 @@ export TARGET_ARCH ?= msp430
|
||||
# define build specific options
|
||||
CFLAGS_CPU = -mmcu=$(CPU_MODEL) -std=gnu99
|
||||
CFLAGS_LINK = -ffunction-sections -fdata-sections
|
||||
CFLAGS_DBG = -gdwarf-2
|
||||
CFLAGS_DBG ?= -gdwarf-2
|
||||
CFLAGS_OPT ?= -Os
|
||||
# export compiler flags
|
||||
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
|
||||
|
Loading…
Reference in New Issue
Block a user