From ab61a0f97820eb0222e4637f7afea0a371117f46 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 21 Apr 2023 09:54:22 +0200 Subject: [PATCH] sys/sched_round_robin: move deps resolution in its own Makefile.dep --- sys/Makefile.dep | 9 --------- sys/sched_round_robin/Makefile.dep | 7 +++++++ 2 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 sys/sched_round_robin/Makefile.dep 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