diff --git a/sys/Makefile.dep b/sys/Makefile.dep index 4b6bec73a8..a19a5fdbd7 100644 --- a/sys/Makefile.dep +++ b/sys/Makefile.dep @@ -378,15 +378,6 @@ ifneq (,$(filter pthread,$(USEMODULE))) endif endif -ifneq (,$(filter sched_round_robin,$(USEMODULE))) -# this depends on either ztimer_usec or ztimer_msec if neither is used -# prior to this msec is preferred - ifeq (,$(filter ztimer_usec,$(USEMODULE))$(filter ztimer_msec,$(USEMODULE))) - USEMODULE += ztimer_msec - endif - USEMODULE += sched_runq_callback -endif - ifneq (,$(filter saul_reg,$(USEMODULE))) USEMODULE += saul endif diff --git a/sys/sched_round_robin/Makefile.dep b/sys/sched_round_robin/Makefile.dep new file mode 100644 index 0000000000..9855c70dec --- /dev/null +++ b/sys/sched_round_robin/Makefile.dep @@ -0,0 +1,7 @@ +# this depends on either ztimer_usec or ztimer_msec if neither is used +# prior to this msec is preferred +ifeq (,$(filter ztimer_usec,$(USEMODULE))$(filter ztimer_msec,$(USEMODULE))) + USEMODULE += ztimer_msec +endif + +USEMODULE += sched_runq_callback