mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 22:43:50 +01:00
make: expose used features with -DFEATURE_ABC
All used feature requests (both in `FEATURES_REQUIRED` and `FEATURES_OPTIONAL`) that could be satisfied get exposed to C with `-DFEATURE_ABC`.
This commit is contained in:
parent
162850b332
commit
938d7d441b
@ -5,6 +5,7 @@ USEMODULE += $(filter-out $(DISABLE_MODULE), $(DEFAULT_MODULE))
|
||||
|
||||
INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include
|
||||
ED = $(patsubst %,-DMODULE_%,$(subst -,_,$(USEMODULE) $(USEPKG)))
|
||||
ED += $(patsubst %,-DFEATURE_%,$(subst -,_,$(filter $(FEATURES_PROVIDED), $(FEATURES_REQUIRED))))
|
||||
EXTDEFINES = $(shell echo $(sort $(ED))|tr 'a-z' 'A-Z')
|
||||
REALMODULES = $(filter-out $(PSEUDOMODULES), $(sort $(USEMODULE)))
|
||||
export BASELIBS += $(REALMODULES:%=$(BINDIR)%.a)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user