Skip to content
Snippets Groups Projects
Commit d58da976 authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

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
parent 8ac4f333
No related branches found
No related tags found
No related merge requests found
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)
......
PSEUDOMODULES += defaulttransceiver
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment