cpu/esp: Move dependency resolution of esp_gdb to Makefile.dep
This commit is contained in:
parent
7a30795a8c
commit
f918b97ec3
@ -35,6 +35,10 @@ ifneq (,$(filter netdev_default gnrc_netdev_default,$(USEMODULE)))
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter esp_gdbstub,$(USEMODULE)))
|
||||
USEMODULE += esp_gdb
|
||||
endif
|
||||
|
||||
# each device has SPI flash memory, but it has to be enabled explicitly
|
||||
ifneq (,$(filter esp_spiffs,$(USEMODULE)))
|
||||
USEMODULE += spiffs
|
||||
|
||||
@ -7,10 +7,6 @@ FLASH_MODE ?= dout
|
||||
# SPECIAL module dependencies
|
||||
# cannot be done in Makefile.dep since Makefile.dep is included too late
|
||||
|
||||
ifneq (,$(filter esp_gdbstub,$(USEMODULE)))
|
||||
USEMODULE += esp_gdb
|
||||
endif
|
||||
|
||||
ifneq (,$(filter log_color,$(USEMODULE)))
|
||||
USEMODULE += esp_log_colored
|
||||
endif
|
||||
@ -55,12 +51,9 @@ ASFLAGS += --longcalls --text-section-literals
|
||||
ARFLAGS = rcs
|
||||
|
||||
CFLAGS_DBG ?= -ggdb -g3
|
||||
CFLAGS_OPT ?= -Os
|
||||
|
||||
# override default CFLAGS_OPT in case module esp_gdb is enabled
|
||||
ifneq (,$(filter esp_gdb,$(USEMODULE)))
|
||||
CFLAGS_OPT = -Og
|
||||
endif
|
||||
CFLAGS_OPT ?= $(if $(filter esp_gdb,$(USEMODULE)),-Og,-Os)
|
||||
|
||||
CFLAGS += $(CFLAGS_OPT) $(CFLAGS_DBG)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user