From 16b2606bac19174c2c11b5a361381de74f4f1d5a Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Fri, 21 Apr 2023 09:52:46 +0200 Subject: [PATCH] sys/cpp11-compat: move dependency resolution in its own Makefile.dep --- sys/Makefile.dep | 12 ------------ sys/cpp11-compat/Makefile.dep | 9 +++++++++ 2 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 sys/cpp11-compat/Makefile.dep diff --git a/sys/Makefile.dep b/sys/Makefile.dep index 7e4af1d148..2737481568 100644 --- a/sys/Makefile.dep +++ b/sys/Makefile.dep @@ -360,18 +360,6 @@ ifneq (,$(filter log_%,$(USEMODULE))) USEMODULE += log endif -ifneq (,$(filter cpp11-compat,$(USEMODULE))) - USEMODULE += cpp_new_delete - USEMODULE += ztimer64_usec - USEMODULE += timex - FEATURES_REQUIRED += cpp - FEATURES_REQUIRED += libstdcpp - ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE))) - # requires 64bit for syscalls - USEMODULE += ztimer64_xtimer_compat - endif -endif - ifneq (,$(filter netstats_%, $(USEMODULE))) USEMODULE += netstats endif diff --git a/sys/cpp11-compat/Makefile.dep b/sys/cpp11-compat/Makefile.dep new file mode 100644 index 0000000000..8cf19a4dc2 --- /dev/null +++ b/sys/cpp11-compat/Makefile.dep @@ -0,0 +1,9 @@ +USEMODULE += cpp_new_delete +USEMODULE += ztimer64_usec +USEMODULE += timex +FEATURES_REQUIRED += cpp +FEATURES_REQUIRED += libstdcpp +ifneq (,$(filter ztimer_xtimer_compat,$(USEMODULE))) + # requires 64bit for syscalls + USEMODULE += ztimer64_xtimer_compat +endif