1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/periph_pm/Makefile.board.dep
Francisco Molina 600acb756c tests/periph_pm: select ztimer_no_periph_rtt for sam0 boards
For sam0 there is a conflict between rtt and rtc, make resolves
this based on feature conflicts and the feature to be included
depends on dependency resolution.

Kconfig can't rely on order of inclusion therefore ztimer_no_periph_rtt
is implied to aboid ztimer_msec selecting rtt (its the case for BOARDs
using stdio_rtt
2021-12-15 10:31:19 +01:00

9 lines
368 B
Makefile

# For sam0 rtt conflicts with rtc, make will select only rtc because of
# order of inclusion, but to resolve in the same way as Kconfig this also
# selects ztimer_no_periph_rtt to select the same modules in Kconfig and make
ifneq (,$(filter-out sam3,$(filter sam%,$(CPU))))
ifneq (,$(filter ztimer%,$(USEMODULE)))
USEMODULE += ztimer_no_periph_rtt
endif
endif