From 74ec336d03dbc37b30919fed7bada5ea54b66d21 Mon Sep 17 00:00:00 2001
From: Jose Alamos <jose.alamos@haw-hamburg.de>
Date: Wed, 13 Jun 2018 10:34:32 +0200
Subject: [PATCH] pkg/openthread: move dependencies to pkg Makefile.dep

---
 Makefile.dep                | 10 ----------
 pkg/openthread/Makefile.dep | 10 ++++++++++
 2 files changed, 10 insertions(+), 10 deletions(-)
 create mode 100644 pkg/openthread/Makefile.dep

diff --git a/Makefile.dep b/Makefile.dep
index d6ec40a171..036aa78eb3 100644
--- a/Makefile.dep
+++ b/Makefile.dep
@@ -653,11 +653,6 @@ ifneq (,$(filter random,$(USEMODULE)))
   USEMODULE += luid
 endif
 
-ifneq (,$(filter openthread_contrib,$(USEMODULE)))
-  USEMODULE += openthread_contrib_netdev
-  FEATURES_REQUIRED += cpp
-endif
-
 ifneq (,$(filter asymcute,$(USEMODULE)))
   USEMODULE += sock_udp
   USEMODULE += sock_util
@@ -731,11 +726,6 @@ ifneq (,$(filter gcoap,$(USEMODULE)))
   USEMODULE += sock_util
 endif
 
-ifneq (,$(filter openthread,$(USEPKG)))
-  USEMODULE += openthread_contrib
-  USEMODULE += mbedcrypto
-endif
-
 ifneq (,$(filter luid,$(USEMODULE)))
   FEATURES_OPTIONAL += periph_cpuid
 endif
diff --git a/pkg/openthread/Makefile.dep b/pkg/openthread/Makefile.dep
new file mode 100644
index 0000000000..3792eb87f4
--- /dev/null
+++ b/pkg/openthread/Makefile.dep
@@ -0,0 +1,10 @@
+ifneq (,$(filter openthread,$(USEPKG)))
+  USEMODULE += openthread_contrib
+  USEMODULE += mbedcrypto
+endif
+
+ifneq (,$(filter openthread_contrib,$(USEMODULE)))
+  USEMODULE += openthread_contrib_netdev
+  USEMODULE += xtimer
+  FEATURES_REQUIRED += cpp
+endif
-- 
GitLab