mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Makefile.include: allow specifying makefiles to be parsed
This allows specifying a list of files that should be parsed by make at the beginning and at the end of Makefile.include. It is a generic mechanism to allow specifying system wide configuration: * Globally overwrite the 'TERMPROG' * Specify a hard written port / debug_adapter_id for some BOARD values * Define you own specific targets * Override default targets It can include file before and after Makefile.include to allow handling different configurations.
This commit is contained in:
parent
b6abbad6fb
commit
efddd4aef9
@ -1,6 +1,11 @@
|
||||
# 'Makefile.include' directory, must be evaluated before other 'include'
|
||||
_riotbase := $(dir $(lastword $(MAKEFILE_LIST)))
|
||||
|
||||
# include RIOT_MAKEFILES_GLOBAL_PRE configuration files
|
||||
# allows setting user specific system wide configuration parsed before the body
|
||||
# of $(RIOTBASE)/Makefile.include
|
||||
include $(RIOT_MAKEFILES_GLOBAL_PRE)
|
||||
|
||||
# Globally set default goal to `all`
|
||||
.DEFAULT_GOAL := all
|
||||
|
||||
@ -730,3 +735,8 @@ ifneq ($(_BASELIBS_VALUE_BEFORE_USAGE),$(BASELIBS))
|
||||
endif
|
||||
|
||||
endif # BOARD=none
|
||||
|
||||
# include RIOT_MAKEFILES_GLOBAL_POST configuration files
|
||||
# allows setting user specific system wide configuration parsed after the body
|
||||
# of $(RIOTBASE)/Makefile.include
|
||||
include $(RIOT_MAKEFILES_GLOBAL_POST)
|
||||
|
Loading…
Reference in New Issue
Block a user