1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

makefiles/modules.inc.mk: convert uppercase with utils function

Convert the module to uppercase using the 'makefiles/utils' function.
This commit is contained in:
Gaëtan Harter 2019-08-29 14:20:25 +02:00
parent fe6d892969
commit e5278a2364
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -3,7 +3,7 @@ _ALLMODULES = $(sort $(USEMODULE) $(USEPKG))
# Define MODULE_MODULE_NAME preprocessor macros for all modules.
ED = $(addprefix MODULE_,$(_ALLMODULES))
# EXTDEFINES will be put in CFLAGS_WITH_MACROS
EXTDEFINES = $(addprefix -D,$(shell echo '$(ED)' | tr 'a-z-' 'A-Z_'))
EXTDEFINES = $(addprefix -D,$(call uppercase_and_underscore,$(ED)))
# filter "pseudomodules" from "real modules", but not "no_pseudomodules"
REALMODULES += $(filter-out $(PSEUDOMODULES), $(_ALLMODULES))