diff --git a/Makefile.dep b/Makefile.dep index e5239c3a49873ca34dd9ecb0145d844b55b91bee..c793e1639dc711efcc5024b4ea73f464b86827e9 100644 --- a/Makefile.dep +++ b/Makefile.dep @@ -191,16 +191,6 @@ ifneq (,$(filter gnrc_pktdump,$(USEMODULE))) USEMODULE += od endif -ifneq (,$(filter gnrc_pktbuf, $(USEMODULE))) - ifeq (,$(filter gnrc_pktbuf_%, $(USEMODULE))) - USEMODULE += gnrc_pktbuf_static - endif -endif - -ifneq (,$(filter gnrc_pktbuf_%, $(USEMODULE))) - USEMODULE += gnrc_pktbuf # make MODULE_GNRC_PKTBUF macro available for all implementations -endif - ifneq (,$(filter newlib,$(USEMODULE))) USEMODULE += uart_stdio endif @@ -267,6 +257,16 @@ ifneq (,$(filter gnrc,$(USEMODULE))) USEMODULE += gnrc_pktbuf endif +ifneq (,$(filter gnrc_pktbuf, $(USEMODULE))) + ifeq (,$(filter gnrc_pktbuf_%, $(USEMODULE))) + USEMODULE += gnrc_pktbuf_static + endif +endif + +ifneq (,$(filter gnrc_pktbuf_%, $(USEMODULE))) + USEMODULE += gnrc_pktbuf # make MODULE_GNRC_PKTBUF macro available for all implementations +endif + ifneq (,$(filter gnrc_netdev2,$(USEMODULE))) USEMODULE += netopt endif