From 3969f24dbe614bb20c501fbebe9f5b90eae344f0 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Wed, 24 Jun 2020 08:50:08 +0200 Subject: [PATCH] boards: automatically import disp and touch device drivers --- boards/adafruit-clue/Makefile.dep | 4 ++++ boards/pinetime/Makefile.dep | 4 ++++ boards/stm32f429i-disc1/Makefile.dep | 8 ++++++++ 3 files changed, 16 insertions(+) diff --git a/boards/adafruit-clue/Makefile.dep b/boards/adafruit-clue/Makefile.dep index 1d896eaf29..501bf04aaa 100644 --- a/boards/adafruit-clue/Makefile.dep +++ b/boards/adafruit-clue/Makefile.dep @@ -6,5 +6,9 @@ ifneq (,$(filter saul_default,$(USEMODULE))) USEMODULE += sht3x endif +ifneq (,$(filter disp_dev,$(USEMODULE))) + USEMODULE += ili9341 +endif + include $(RIOTBOARD)/common/nrf52/bootloader_nrfutil.dep.mk include $(RIOTBOARD)/common/nrf52/Makefile.dep diff --git a/boards/pinetime/Makefile.dep b/boards/pinetime/Makefile.dep index f3a5ebd2eb..aee3ae5527 100644 --- a/boards/pinetime/Makefile.dep +++ b/boards/pinetime/Makefile.dep @@ -7,5 +7,9 @@ ifneq (,$(filter mtd,$(USEMODULE))) USEMODULE += mtd_spi_nor endif +ifneq (,$(filter disp_dev,$(USEMODULE))) + USEMODULE += ili9341 +endif + # include common nrf52 dependencies include $(RIOTBOARD)/common/nrf52/Makefile.dep diff --git a/boards/stm32f429i-disc1/Makefile.dep b/boards/stm32f429i-disc1/Makefile.dep index 5472bf8b8d..4b04c828e4 100644 --- a/boards/stm32f429i-disc1/Makefile.dep +++ b/boards/stm32f429i-disc1/Makefile.dep @@ -1,3 +1,11 @@ ifneq (,$(filter saul_default,$(USEMODULE))) USEMODULE += saul_gpio endif + +ifneq (,$(filter disp_dev,$(USEMODULE))) + USEMODULE += ili9341 +endif + +ifneq (,$(filter touch_dev,$(USEMODULE))) + USEMODULE += stmpe811 +endif