From 1567a080ce4036472751474906ea7729010f318b Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Mon, 7 Mar 2022 09:38:42 +0100 Subject: [PATCH] pkg/lvgl: add extra diget dependency --- pkg/lvgl/Kconfig | 4 ++++ pkg/lvgl/Makefile.dep | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pkg/lvgl/Kconfig b/pkg/lvgl/Kconfig index ea5ff60456..3c1981defc 100644 --- a/pkg/lvgl/Kconfig +++ b/pkg/lvgl/Kconfig @@ -188,6 +188,9 @@ config MODULE_LVGL_EXTRA_WIDGET_LIST config MODULE_LVGL_EXTRA_WIDGET_MENU bool "Menu extra widget" + select MODULE_LVGL_WIDGET_IMG + select MODULE_LVGL_WIDGET_BTN + select MODULE_LVGL_WIDGET_LABEL select LV_USE_MENU if KCONFIG_USEPKG_LVGL config MODULE_LVGL_EXTRA_WIDGET_METER @@ -212,6 +215,7 @@ config MODULE_LVGL_EXTRA_WIDGET_SPINNER config MODULE_LVGL_EXTRA_WIDGET_TABVIEW bool "Tabview extra widget" + select MODULE_LVGL_WIDGET_BTNMATRIX select LV_USE_TABVIEW if KCONFIG_USEPKG_LVGL config MODULE_LVGL_EXTRA_WIDGET_TILEVIEW diff --git a/pkg/lvgl/Makefile.dep b/pkg/lvgl/Makefile.dep index 5c5a30c50c..7549fcf71e 100644 --- a/pkg/lvgl/Makefile.dep +++ b/pkg/lvgl/Makefile.dep @@ -12,11 +12,15 @@ ifneq (,$(filter lvgl_extra_widget_spinner,$(USEMODULE))) USEMODULE += lvgl_widget_arc endif -ifneq (,$(filter lvgl_extra_widget_win,$(USEMODULE))) +ifneq (,$(filter lvgl_extra_widget_win lvgl_extra_widget_menu,$(USEMODULE))) USEMODULE += lvgl_widget_btn USEMODULE += lvgl_widget_img endif +ifneq (,$(filter lvgl_extra_widget_tabview,$(USEMODULE))) + USEMODULE += lvgl_widget_btnmatrix +endif + ifneq (,$(filter lvgl_widget_textarea lvgl_widget_roller lvgl_widget_img lvgl_widget_dropdown lvgl_extra_widget_win,$(USEMODULE))) USEMODULE += lvgl_widget_label endif