From 645ac53fe0d60a69387b1813e01251636adf0e30 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 22 Jan 2021 11:47:11 +0100 Subject: [PATCH] makefiles: allow boards and CPUs to define default modules This allows boards and CPUs to define a Makefile.default file where default modules can be added before the normal dependency resolution. --- makefiles/defaultmodules.inc.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/makefiles/defaultmodules.inc.mk b/makefiles/defaultmodules.inc.mk index 2eee5cad37..f0bc0f9bad 100644 --- a/makefiles/defaultmodules.inc.mk +++ b/makefiles/defaultmodules.inc.mk @@ -4,3 +4,9 @@ DEFAULT_MODULE += auto_init # Initialize all used peripherals by default DEFAULT_MODULE += periph_init + +# Include potentially added default modules by the board +-include $(BOARDDIR)/Makefile.default + +# Include potentially added default modules by the CPU +-include $(RIOTCPU)/$(CPU)/Makefile.default