From 38f32be24f46dc1fa236e5e3ccc883986b9056b2 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 25 Jun 2020 22:38:19 +0200 Subject: [PATCH] Makefile.include: include per driver Makefile.include if available --- Makefile.include | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.include b/Makefile.include index 944bed33fa..0c9939343b 100644 --- a/Makefile.include +++ b/Makefile.include @@ -449,6 +449,9 @@ USEMODULE_INCLUDES = include $(RIOTBASE)/sys/Makefile.include include $(RIOTBASE)/drivers/Makefile.include +# include Makefile.includes of each driver modules if they exist +-include $(USEMODULE:%=$(RIOTBASE)/drivers/%/Makefile.include) + # include Makefile.includes for packages in $(USEPKG) -include $(USEPKG:%=$(RIOTPKG)/%/Makefile.include)