pkg/lvgl: model dependency resolution in Kconfig

This commit is contained in:
Leandro Lanzieri 2021-04-28 08:55:46 +02:00 committed by Alexandre Abadie
parent b2148cc34b
commit a60b53005a
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
5 changed files with 82 additions and 1 deletions

View File

@ -5,6 +5,66 @@
# directory for more details.
#
if TEST_KCONFIG
menuconfig PACKAGE_LVGL
bool "LVGL package"
imply MODULE_AUTO_INIT_SCREEN
select MODULE_LVGL
select MODULE_LVGL_CORE
select MODULE_LVGL_DRAW
select MODULE_LVGL_FONT
select MODULE_LVGL_HAL
select MODULE_LVGL_MISC
select MODULE_LVGL_THEMES
select MODULE_LVGL_WIDGETS
# lvgl is not compatible with non 32bit platforms
# Building lv_misc triggers the error:
# "left shift count >= width of type [-Werror=shift-count-overflow]"
depends on !HAS_ARCH_8BIT
depends on !HAS_ARCH_16BIT
if PACKAGE_LVGL
config MODULE_LVGL_CONTRIB
bool "Contrib"
select MODULE_DISP_DEV
select MODULE_CORE_THREAD_FLAGS
select MODULE_XTIMER
config MODULE_LVGL_CONTRIB_TOUCH
bool "Touch support"
select MODULE_TOUCH_DEV
endif # PACKAGE_LVGL
config MODULE_LVGL
bool
config MODULE_LVGL_CORE
bool
config MODULE_LVGL_DRAW
bool
config MODULE_LVGL_FONT
bool
config MODULE_LVGL_HAL
bool
config MODULE_LVGL_MISC
bool
config MODULE_LVGL_THEMES
bool
config MODULE_LVGL_WIDGETS
bool
endif # TEST_KCONFIG
menuconfig KCONFIG_USEPKG_LVGL
bool "Configure LVGL"
depends on USEPKG_LVGL

View File

@ -5,7 +5,7 @@
# directory for more details.
#
config MODULE_AUTO_INIT
menuconfig MODULE_AUTO_INIT
bool "Auto-initialization system"
default y
depends on TEST_KCONFIG
@ -14,4 +14,9 @@ config MODULE_AUTO_INIT
drivers, or network interfaces) on start-up automatically. Disable if a
more custom initialization is required. If unsure, say Y.
if MODULE_AUTO_INIT
rsource "screen/Kconfig"
rsource "multimedia/Kconfig"
endif # MODULE_AUTO_INIT

View File

@ -0,0 +1,9 @@
# Copyright (c) 2021 HAW Hamburg
#
# This file is subject to the terms and conditions of the GNU Lesser
# General Public License v2.1. See the file LICENSE in the top level
# directory for more details.
#
config MODULE_AUTO_INIT_SCREEN
bool "Auto-initialize screens"

View File

@ -0,0 +1,2 @@
CONFIG_PACKAGE_LVGL=y
CONFIG_MODULE_LVGL_CONTRIB=y

View File

@ -0,0 +1,5 @@
CONFIG_PACKAGE_LVGL=y
CONFIG_MODULE_LVGL_CONTRIB=y
# Add touch capabilities
CONFIG_MODULE_LVGL_CONTRIB_TOUCH=y