From 3b7544c7e4e878810f8d89adabe2063d5b6d2cf4 Mon Sep 17 00:00:00 2001 From: Oleg Hahm <oleg@hobbykeller.org> Date: Wed, 9 Sep 2015 11:29:00 +0200 Subject: [PATCH] make: move gnrc_pktbuf down the dependency list The dependency list is processed in order, hence each module has to be declared after its last use as dependency. --- Makefile.dep | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Makefile.dep b/Makefile.dep index e5239c3a49..c793e1639d 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 -- GitLab