mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 23:11:19 +01:00
buildsystem: introduce global boards makefiles
This commit is contained in:
parent
04a169867e
commit
54b32b330f
@ -17,9 +17,10 @@ endif
|
||||
# processed before RIOT ones to be evaluated before the 'default' rules.
|
||||
-include $(EXTERNAL_MODULE_PATHS:%=%Makefile.dep)
|
||||
|
||||
# pull dependencies from sys and drivers
|
||||
# pull dependencies from sys, drivers and (common) boards
|
||||
include $(RIOTBASE)/sys/Makefile.dep
|
||||
include $(RIOTBASE)/drivers/Makefile.dep
|
||||
include $(RIOTBASE)/boards/Makefile.dep
|
||||
|
||||
# pull Makefile.dep of each driver modules if they exist
|
||||
-include $(sort $(USEMODULE:%=$(RIOTBASE)/drivers/%/Makefile.dep))
|
||||
|
||||
@ -11,6 +11,9 @@
|
||||
|
||||
include $(BOARDDIR)/Makefile.features
|
||||
|
||||
# include global Makefile.features for `boards` modules
|
||||
include $(RIOTBOARD)/Makefile.features
|
||||
|
||||
# Sanity check
|
||||
ifeq (,$(CPU))
|
||||
$(error $(BOARD): CPU must be defined by board / board_common Makefile.features)
|
||||
|
||||
@ -448,6 +448,9 @@ include $(BOARDDIR)/Makefile.include
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/include
|
||||
include $(RIOTCPU)/$(CPU)/Makefile.include
|
||||
|
||||
# include global Makefile.include for `boards` modules
|
||||
include $(RIOTBASE)/boards/Makefile.include
|
||||
|
||||
# Include common serial logic to define TERMPROG, TERMFLAGS variables based on
|
||||
# the content of RIOT_TERMINAL
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
@ -568,11 +571,9 @@ BASELIBS += $(APPDEPS)
|
||||
# add extra include paths for packages in $(USEMODULE)
|
||||
USEMODULE_INCLUDES =
|
||||
|
||||
# include global Makefile.include for `sys` modules
|
||||
include $(RIOTBASE)/sys/Makefile.include
|
||||
|
||||
# add default board_init()
|
||||
DIRS += $(RIOTBASE)/boards/common/init
|
||||
|
||||
# include Makefile.includes of each driver modules if they exist
|
||||
-include $(USEMODULE:%=$(RIOTBASE)/drivers/%/Makefile.include)
|
||||
|
||||
|
||||
7
boards/Makefile
Normal file
7
boards/Makefile
Normal file
@ -0,0 +1,7 @@
|
||||
# add default board_init()
|
||||
DIRS += $(RIOTBOARD)/common/init
|
||||
|
||||
|
||||
# SORT THIS ALPHABETICALLY BY COMMON BOARD NAME!
|
||||
|
||||
include $(RIOTBASE)/Makefile.base
|
||||
1
boards/Makefile.dep
Normal file
1
boards/Makefile.dep
Normal file
@ -0,0 +1 @@
|
||||
# SORT THIS ALPHABETICALLY BY COMMON BOARD NAME!
|
||||
1
boards/Makefile.features
Normal file
1
boards/Makefile.features
Normal file
@ -0,0 +1 @@
|
||||
# SORT THIS ALPHABETICALLY BY COMMON BOARD NAME!
|
||||
1
boards/Makefile.include
Normal file
1
boards/Makefile.include
Normal file
@ -0,0 +1 @@
|
||||
# SORT THIS ALPHABETICALLY BY COMMON BOARD NAME!
|
||||
@ -1,6 +1,7 @@
|
||||
MODULE = $(APPLICATION_MODULE)
|
||||
|
||||
DIRS += $(RIOTCPU)/$(CPU) $(BOARDDIR)
|
||||
DIRS += $(RIOTBASE)/boards
|
||||
DIRS += $(RIOTBASE)/core $(RIOTBASE)/core/lib $(RIOTBASE)/drivers $(RIOTBASE)/sys
|
||||
|
||||
# For regular modules, adding files to BLOBS, SRC, SRCXX, ASMSRC or ASSMSRC
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user