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

makefiles: add mechanism to deprecate modules

Add event_thread_lowest as first deprecated module
This commit is contained in:
Marian Buschsieweke 2020-12-02 09:47:06 +01:00
parent 10471a33b3
commit 06c87dfe97
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F
2 changed files with 11 additions and 0 deletions

View File

@ -38,4 +38,12 @@ else
# Sort and de-duplicate used modules and default modules for readability
USEMODULE := $(sort $(USEMODULE))
DEFAULT_MODULE := $(sort $(DEFAULT_MODULE))
# Warn about used deprecated modules
include $(RIOTMAKE)/deprecated_modules.inc.mk
DEPRECATED_MODULES_USED := $(sort $(filter $(DEPRECATED_MODULES),$(USEMODULE)))
ifneq (,$(DEPRECATED_MODULES_USED))
$(shell $(COLOR_ECHO) "$(COLOR_RED)Deprecated modules are in use:$(COLOR_RESET)"\
"$(DEPRECATED_MODULES_USED)" 1>&2)
endif
endif

View File

@ -0,0 +1,3 @@
# Add deprecated modules here
# Keep this list ALPHABETICALLY SORTED!!!!111elven
DEPRECATED_MODULES += event_thread_lowest