make: add Makefile.pseudomodules and use it

BASELIBS now defines targets for anything in USEMODULE that is not in PSEUDOMODULES
move defaulttransceiver to Makefile.pseudomodules
This commit is contained in:
Ludwig Ortmann
2014-03-18 10:19:49 +01:00
parent 8ac4f3332d
commit d58da976c6
2 changed files with 5 additions and 6 deletions
+4 -6
View File
@@ -1,17 +1,15 @@
export MAKEBASE =$(RIOTBASE)
UNDEF += $(BINDIR)startup.o
include $(RIOTBASE)/Makefile.pseudomodules
USEMODULE += cpu core sys
INCLUDES += -I$(RIOTBASE)/core/include -I$(RIOTBASE)/drivers/include -I$(RIOTBASE)/sys/include
ED = $(USEMODULE:%=-DMODULE_%)
ED += $(USEPKG:%=-DMODULE_%)
EXTDEFINES = $(shell echo $(ED)|tr 'a-z' 'A-Z')
BL=$(USEMODULE:%= $(BINDIR)%.a)
# Exclude defaulttransceiver, it is only a pseudomodule that adds other
# modules depending on the current board.
export BASELIBS = $(shell echo $(BL)|sed \
-e 's/[^ ]*defaulttransceiver.a//')
REALMODULES = $(filter-out $(PSEUDOMODULES), $(USEMODULE))
export BASELIBS = $(REALMODULES:%= $(BINDIR)%.a)
CFLAGS += $(EXTDEFINES)
+1
View File
@@ -0,0 +1 @@
PSEUDOMODULES += defaulttransceiver