1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

ztimer_xtimer_compat: move PSEUDOMODULES definition to Makefile.include

This commit is contained in:
Juergen Fitschen 2020-05-23 16:40:54 +02:00
parent 5a54c29f09
commit b098108c99
2 changed files with 6 additions and 1 deletions

View File

@ -111,3 +111,9 @@ endif
ifneq (,$(filter zptr,$(USEMODULE)))
include $(RIOTBASE)/sys/zptr/Makefile.include
endif
# Convert xtimer into a pseudo module if its API is already implemented by
# ztimer's compatibility wrapper
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
PSEUDOMODULES += xtimer
endif

View File

@ -42,7 +42,6 @@ endif
ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE)))
USEMODULE += div
USEMODULE += ztimer_usec
PSEUDOMODULES += xtimer
endif
ifneq (,$(filter ztimer_%,$(USEMODULE)))