mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
introduce CPU name macro via CFLAG
This commit is contained in:
parent
881593b981
commit
714178afd2
@ -13,7 +13,8 @@ endif
|
||||
|
||||
# if you want to publish the board into the sources as an uppercase #define
|
||||
BB = $(shell echo $(BOARD)|tr 'a-z' 'A-Z')
|
||||
CFLAGS += -DBOARD=$(BB)
|
||||
CPUDEF = $(shell echo $(CPU)|tr 'a-z' 'A-Z')
|
||||
CFLAGS += -DBOARD=$(BB) -DCPU_$(CPUDEF)
|
||||
export CFLAGS
|
||||
|
||||
# mandatory includes!
|
||||
|
Loading…
Reference in New Issue
Block a user