From d83f77531e08a20aa3d151fba5a7a7594d763635 Mon Sep 17 00:00:00 2001
From: Oleg Hahm <oleg@hobbykeller.org>
Date: Sun, 20 Mar 2016 17:50:30 +0100
Subject: [PATCH] shell: fix condition for ping command

---
 sys/shell/commands/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys/shell/commands/Makefile b/sys/shell/commands/Makefile
index 5628af01c7..26dc3391d2 100644
--- a/sys/shell/commands/Makefile
+++ b/sys/shell/commands/Makefile
@@ -44,7 +44,10 @@ endif
 ifneq (,$(filter gnrc_ipv6_blacklist,$(USEMODULE)))
   SRC += sc_blacklist.c
 endif
-ifneq (,$(filter gnrc_icmpv6_echo xtimer,$(USEMODULE)))
+# The ping command in sc_icmpv6_echo requires xtimer, too. However, this is
+# implicitly pulled in by gnrc_ipv6_netif (which is a dependency of gnrc_ipv6)
+# already.
+ifneq (,$(filter gnrc_icmpv6_echo,$(USEMODULE)))
   SRC += sc_icmpv6_echo.c
 endif
 ifneq (,$(filter gnrc_zep,$(USEMODULE)))
-- 
GitLab