1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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-03 10:05:36 +01:00
parent 8ac4f3332d
commit d58da976c6
2 changed files with 5 additions and 6 deletions

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
Makefile.pseudomodules Normal file
View File

@ -0,0 +1 @@
PSEUDOMODULES += defaulttransceiver