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:
parent
10471a33b3
commit
06c87dfe97
@ -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
|
||||
|
3
makefiles/deprecated_modules.inc.mk
Normal file
3
makefiles/deprecated_modules.inc.mk
Normal file
@ -0,0 +1,3 @@
|
||||
# Add deprecated modules here
|
||||
# Keep this list ALPHABETICALLY SORTED!!!!111elven
|
||||
DEPRECATED_MODULES += event_thread_lowest
|
Loading…
Reference in New Issue
Block a user