mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
makefiles/modules.inc.mk: refactor, do not overwrite NO_PSEUDOMODULES
Refactor to define REALMODULES incrementally without overwriting 'NO_PSEUDOMODULES'. This also allows an external makefile to maybe add something there if it really needs to.
This commit is contained in:
parent
5453523933
commit
8d58e3bf91
@ -6,6 +6,6 @@ EXTDEFINES = $(addprefix -D,$(shell echo '$(ED)' | tr 'a-z-' 'A-Z_'))
|
||||
CFLAGS += $(EXTDEFINES)
|
||||
|
||||
# filter "pseudomodules" from "real modules", but not "no_pseudomodules"
|
||||
NO_PSEUDOMODULES := $(filter $(NO_PSEUDOMODULES), $(_ALLMODULES))
|
||||
REALMODULES = $(filter-out $(PSEUDOMODULES), $(_ALLMODULES)) $(NO_PSEUDOMODULES)
|
||||
REALMODULES += $(filter-out $(PSEUDOMODULES), $(_ALLMODULES))
|
||||
REALMODULES += $(filter $(NO_PSEUDOMODULES), $(_ALLMODULES))
|
||||
BASELIBS += $(REALMODULES:%=$(BINDIR)/%.a)
|
||||
|
Loading…
Reference in New Issue
Block a user