mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/preprocessor: add preprocessor module
This commit is contained in:
parent
fad66e4a50
commit
b4dcbba26d
@ -2,6 +2,10 @@
|
|||||||
# end of the dependency loop. They MAY inlcude new modules, but this modules
|
# end of the dependency loop. They MAY inlcude new modules, but this modules
|
||||||
# MUST NOT have dependencies themselfs.
|
# MUST NOT have dependencies themselfs.
|
||||||
|
|
||||||
|
ifneq (,$(filter auto_init%,$(USEMODULE)))
|
||||||
|
USEMODULE += preprocessor preprocessor_successor
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq (,$(filter auto_init_ztimer,$(USEMODULE)))
|
ifneq (,$(filter auto_init_ztimer,$(USEMODULE)))
|
||||||
USEMODULE += ztimer_init
|
USEMODULE += ztimer_init
|
||||||
endif
|
endif
|
||||||
|
@ -173,6 +173,9 @@ endif
|
|||||||
ifneq (,$(filter pthread,$(USEMODULE)))
|
ifneq (,$(filter pthread,$(USEMODULE)))
|
||||||
DIRS += posix/pthread
|
DIRS += posix/pthread
|
||||||
endif
|
endif
|
||||||
|
ifneq (,$(filter preprocessor_%,$(USEMODULE)))
|
||||||
|
DIRS += preprocessor
|
||||||
|
endif
|
||||||
ifneq (,$(filter routing,$(USEMODULE)))
|
ifneq (,$(filter routing,$(USEMODULE)))
|
||||||
DIRS += net/routing
|
DIRS += net/routing
|
||||||
endif
|
endif
|
||||||
|
@ -181,3 +181,7 @@ endif
|
|||||||
ifneq (,$(filter tiny_strerror,$(USEMODULE)))
|
ifneq (,$(filter tiny_strerror,$(USEMODULE)))
|
||||||
include $(RIOTBASE)/sys/tiny_strerror/Makefile.include
|
include $(RIOTBASE)/sys/tiny_strerror/Makefile.include
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter preprocessor_%,$(USEMODULE)))
|
||||||
|
include $(RIOTBASE)/sys/preprocessor/Makefile.include
|
||||||
|
endif
|
||||||
|
3
sys/preprocessor/Makefile
Normal file
3
sys/preprocessor/Makefile
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MODULE := preprocessor
|
||||||
|
|
||||||
|
include $(RIOTBASE)/Makefile.base
|
18
sys/preprocessor/Makefile.include
Normal file
18
sys/preprocessor/Makefile.include
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
RIOT_PP_SUCCESSOR_MAX ?= 9999
|
||||||
|
|
||||||
|
PSEUDOMODULES += preprocessor_successor
|
||||||
|
|
||||||
|
USEMODULE_INCLUDES_preprocessor := $(BINDIR)/preprocessor
|
||||||
|
USEMODULE_INCLUDES += $(USEMODULE_INCLUDES_preprocessor)
|
||||||
|
|
||||||
|
RIOT_GENERATE_PP_HEADERS :=
|
||||||
|
|
||||||
|
ifneq (,$(filter preprocessor_successor,$(USEMODULE)))
|
||||||
|
RIOT_GENERATE_PP_HEADERS += $(BINDIR)/preprocessor/preprocessor_successor.h
|
||||||
|
endif
|
||||||
|
|
||||||
|
BUILDDEPS += $(RIOT_GENERATE_PP_HEADERS)
|
||||||
|
|
||||||
|
$(BINDIR)/preprocessor/preprocessor_successor.h:
|
||||||
|
@mkdir -p '$(dir $@)'
|
||||||
|
$(Q)'$(RIOTTOOLS)/generate_pp_successor_header/generate_pp_successor_header.sh' $(RIOT_PP_SUCCESSOR_MAX) > $@
|
Loading…
Reference in New Issue
Block a user