Merge pull request #13139 from francois-berder/mips-cflags

makefiles: arch: mips: Allow CFLAGS_DBG and CFLAGS_OPT to be overridden
This commit is contained in:
benpicco 2020-02-12 00:02:20 +01:00 committed by GitHub
commit bc6fb241a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,8 +34,8 @@ ifeq (, $(filter -std=%, $(CFLAGS)))
endif
CFLAGS_CPU = -EL -mabi=$(ABI)
CFLAGS_LINK = -ffunction-sections -fno-builtin -fshort-enums -fdata-sections
CFLAGS_DBG = -g3
CFLAGS_OPT = -Os
CFLAGS_DBG ?= -g3
CFLAGS_OPT ?= -Os
CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_OPT) $(CFLAGS_DBG)
CFLAGS += -DCPU_MODEL_$(call uppercase_and_underscore,$(CPU_MODEL))