mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 04:52:59 +01:00
make: add NO_PSEUDOMODULES variable
This commit is contained in:
parent
60d543ab3d
commit
c348a89c91
@ -3,7 +3,10 @@ USEMODULE := $(filter-out $(filter-out $(FEATURES_PROVIDED), $(FEATURES_OPTIONAL
|
||||
ED = $(addprefix FEATURE_,$(sort $(filter $(FEATURES_PROVIDED), $(FEATURES_REQUIRED))))
|
||||
ED += $(addprefix MODULE_,$(sort $(USEMODULE) $(USEPKG)))
|
||||
EXTDEFINES = $(addprefix -D,$(shell echo '$(ED)' | tr 'a-z-' 'A-Z_'))
|
||||
REALMODULES = $(filter-out $(PSEUDOMODULES), $(sort $(USEMODULE) $(USEPKG)))
|
||||
|
||||
# filter "pseudomodules" from "real modules", but not "no_pseudomodules"
|
||||
NO_PSEUDOMODULES := $(filter $(NO_PSEUDOMODULES), $(sort $(USEMODULE) $(USEPKG)))
|
||||
REALMODULES = $(filter-out $(PSEUDOMODULES), $(sort $(USEMODULE) $(USEPKG))) $(NO_PSEUDOMODULES)
|
||||
export BASELIBS += $(REALMODULES:%=$(BINDIR)/%.a)
|
||||
|
||||
CFLAGS += $(EXTDEFINES)
|
||||
|
Loading…
Reference in New Issue
Block a user