Skip to content

Commit 3470ace

Browse files
Bartosz Golaszewskimbolivar-nordic
authored andcommitted
modules: lvgl: add stubs for Kconfig symbols overridden in-tree
There are several Kconfig symbols defined in the lvgl module that are referenced from various defconfigs in the zephyr tree. If the LVGL module is unavailable, they need to be redefined as stubs in Kconfig.lvgl. Fixes: 6c19029 ("lvgl: move the lvgl glue out of the zephyr tree") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
1 parent 81dbc9d commit 3470ace

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

modules/Kconfig.lvgl

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,45 @@ config LVGL
55
bool "LittlevGL GUI library"
66
help
77
This option enables the LittlevGL GUI library.
8+
9+
if !LVGL
10+
11+
config LV_Z_POINTER_KSCAN
12+
bool
13+
14+
config LV_Z_POINTER_KSCAN_DEV_NAME
15+
string
16+
default "KSCAN"
17+
18+
config LV_Z_POINTER_KSCAN_MSGQ_COUNT
19+
int
20+
default 10
21+
22+
config LV_Z_POINTER_KSCAN_SWAP_XY
23+
bool
24+
25+
config LV_Z_POINTER_KSCAN_INVERT_X
26+
bool
27+
28+
config LV_Z_POINTER_KSCAN_INVERT_Y
29+
bool
30+
31+
choice LV_COLOR_DEPTH_BITS
32+
default LV_COLOR_DEPTH_16
33+
prompt "Color depth."
34+
depends on LVGL
35+
36+
config LV_COLOR_DEPTH_32
37+
bool "32: ARGB8888"
38+
config LV_COLOR_DEPTH_16
39+
bool "16: RGB565"
40+
config LV_COLOR_DEPTH_8
41+
bool "8: RGB232"
42+
config LV_COLOR_DEPTH_1
43+
bool "1: 1 byte per pixel"
44+
endchoice
45+
46+
config LV_COLOR_16_SWAP
47+
bool
48+
49+
endif

0 commit comments

Comments
 (0)