mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Makefile.include: convert board/cpu macros with utils function
Convert *DEF variables to uppercase using the 'makefiles/utils' functions.
This commit is contained in:
parent
e5278a2364
commit
fbac80d357
@ -340,9 +340,9 @@ ifeq ($(RIOT_CI_BUILD),1)
|
||||
endif
|
||||
|
||||
# if you want to publish the board into the sources as an uppercase #define
|
||||
BOARDDEF := $(shell echo $(BOARD) | tr 'a-z' 'A-Z' | tr '-' '_')
|
||||
CPUDEF := $(shell echo $(CPU) | tr 'a-z' 'A-Z' | tr '-' '_')
|
||||
MCUDEF := $(shell echo $(MCU) | tr 'a-z' 'A-Z' | tr '-' '_')
|
||||
BOARDDEF = $(call uppercase_and_underscore,$(BOARD))
|
||||
CPUDEF = $(call uppercase_and_underscore,$(CPU))
|
||||
MCUDEF = $(call uppercase_and_underscore,$(MCU))
|
||||
CFLAGS += -DRIOT_APPLICATION=\"$(APPLICATION)\"
|
||||
CFLAGS += -DBOARD_$(BOARDDEF)=\"$(BOARD)\" -DRIOT_BOARD=BOARD_$(BOARDDEF)
|
||||
CFLAGS += -DCPU_$(CPUDEF)=\"$(CPU)\" -DRIOT_CPU=CPU_$(CPUDEF)
|
||||
|
Loading…
Reference in New Issue
Block a user