1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Replace '-' with '_' in BOARD and CPU_… macros

This commit is contained in:
Martin Lenders 2014-03-04 14:58:34 +01:00
parent a6bc8cba28
commit e7c3282886

View File

@ -25,8 +25,8 @@ $(error This application does not run on following boards: $(BOARD_BLACKLIST))
endif
# if you want to publish the board into the sources as an uppercase #define
BB = $(shell echo $(BOARD)|tr 'a-z' 'A-Z')
CPUDEF = $(shell echo $(CPU)|tr 'a-z' 'A-Z')
BB = $(shell echo $(BOARD)|tr 'a-z' 'A-Z'|tr '-' '_')
CPUDEF = $(shell echo $(CPU)|tr 'a-z' 'A-Z'|tr '-' '_')
CFLAGS += -DBOARD=$(BB) -DCPU_$(CPUDEF)
export CFLAGS