diff --git a/Makefile.include b/Makefile.include index 8977118f46..744d65c7a7 100644 --- a/Makefile.include +++ b/Makefile.include @@ -25,9 +25,9 @@ $(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') -CFLAGS += -DBOARD=$(BB) -DCPU_$(CPUDEF) +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