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)