pkg/lvgl: model dependency resolution in Kconfig
This commit is contained in:
parent
b2148cc34b
commit
a60b53005a
@ -5,6 +5,66 @@
|
|||||||
# directory for more details.
|
# 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
|
menuconfig KCONFIG_USEPKG_LVGL
|
||||||
bool "Configure LVGL"
|
bool "Configure LVGL"
|
||||||
depends on USEPKG_LVGL
|
depends on USEPKG_LVGL
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
# directory for more details.
|
# directory for more details.
|
||||||
#
|
#
|
||||||
|
|
||||||
config MODULE_AUTO_INIT
|
menuconfig MODULE_AUTO_INIT
|
||||||
bool "Auto-initialization system"
|
bool "Auto-initialization system"
|
||||||
default y
|
default y
|
||||||
depends on TEST_KCONFIG
|
depends on TEST_KCONFIG
|
||||||
@ -14,4 +14,9 @@ config MODULE_AUTO_INIT
|
|||||||
drivers, or network interfaces) on start-up automatically. Disable if a
|
drivers, or network interfaces) on start-up automatically. Disable if a
|
||||||
more custom initialization is required. If unsure, say Y.
|
more custom initialization is required. If unsure, say Y.
|
||||||
|
|
||||||
|
if MODULE_AUTO_INIT
|
||||||
|
|
||||||
|
rsource "screen/Kconfig"
|
||||||
rsource "multimedia/Kconfig"
|
rsource "multimedia/Kconfig"
|
||||||
|
|
||||||
|
endif # MODULE_AUTO_INIT
|
||||||
|
|||||||
9
sys/auto_init/screen/Kconfig
Normal file
9
sys/auto_init/screen/Kconfig
Normal 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"
|
||||||
2
tests/pkg_lvgl/app.config.test
Normal file
2
tests/pkg_lvgl/app.config.test
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
CONFIG_PACKAGE_LVGL=y
|
||||||
|
CONFIG_MODULE_LVGL_CONTRIB=y
|
||||||
5
tests/pkg_lvgl_touch/app.config.test
Normal file
5
tests/pkg_lvgl_touch/app.config.test
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
CONFIG_PACKAGE_LVGL=y
|
||||||
|
CONFIG_MODULE_LVGL_CONTRIB=y
|
||||||
|
|
||||||
|
# Add touch capabilities
|
||||||
|
CONFIG_MODULE_LVGL_CONTRIB_TOUCH=y
|
||||||
Loading…
x
Reference in New Issue
Block a user