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:
parent
8ac4f3332d
commit
d58da976c6
@ -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
1
Makefile.pseudomodules
Normal file
@ -0,0 +1 @@
|
||||
PSEUDOMODULES += defaulttransceiver
|
Loading…
Reference in New Issue
Block a user