- Add the new EXTERNAL_BOARD_DIRS variable that can contain a space separated
list of folders containing external boards
- Introduce $(BOARDDIR) as shortcut for $(BOARDSDIR)/$(BOARD)
- Map the existing BOARDSDIR to the new approach
- If BOARDSDIR is provided by the user, it will be added to
EXTERNAL_BOARD_DIRS for backward compatibility. (And a warning is issued
to encourage users migrating to EXTRA_BOARDS.)
- BOARDSDIR is updated after the board is found to "$(BOARDDIR)/..".
- Useful for `include $(BOARDSDIR)/common/external_common/Makefile.dep`
- Provides backward compatibility
20 lines
641 B
Makefile
20 lines
641 B
Makefile
MODULE = $(APPLICATION_MODULE)
|
|
|
|
DIRS += $(RIOTCPU)/$(CPU) $(BOARDDIR)
|
|
DIRS += $(RIOTBASE)/core $(RIOTBASE)/drivers $(RIOTBASE)/sys
|
|
|
|
# For regular modules, adding files to BLOBS to their Makefile is sufficient to
|
|
# create the corresponding headers.
|
|
#
|
|
# Application modules are different, as they use this makefile to build, thus
|
|
# application level variables are not available unless exported.
|
|
#
|
|
# But exporting e.g., BLOBS, would pre-set the variable for all
|
|
# submakefiles.
|
|
#
|
|
# As workaround, $(RIOTBASE)/Makefile.include passes BLOBS to this
|
|
# Makefile as APPLICATION_BLOBS.
|
|
BLOBS = $(APPLICATION_BLOBS)
|
|
|
|
include $(RIOTBASE)/Makefile.base
|