cpu: cortexm_common: set default value for CPU_MODEL
This commit is contained in:
parent
e3a2422b8e
commit
ce8b47b75c
@ -8,6 +8,9 @@ export USEMODULE += periph
|
||||
# all cortex MCU's use newlib as libc
|
||||
export USEMODULE += newlib
|
||||
|
||||
# set default for CPU_MODEL
|
||||
export CPU_MODEL ?= $(CPU)
|
||||
|
||||
# export the CPU model and architecture
|
||||
MODEL = $(shell echo $(CPU_MODEL) | tr 'a-z' 'A-Z')
|
||||
export CFLAGS += -DCPU_MODEL_$(MODEL)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user