1
0
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:
Oleg Hahm 2013-12-19 15:24:31 +01:00
parent 881593b981
commit 714178afd2

View File

@ -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!