Skip to content

Commit

Permalink
modules: lvgl: define the Kconfig types used in boards
Browse files Browse the repository at this point in the history
Some boards override default for few LVGL LV_Z_* symbols. This causes
the build to fail if the module is not present in the system, and has
been worked around on one board by repeating the types in the board
Kconfig file.

Fix this properly by defining the known type for all symbols used in
boards in modules/Kconfig.lvgl.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
fabiobaltieri authored and nashif committed Jun 13, 2023
1 parent 6981e2e commit 9d7bd52
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
3 changes: 0 additions & 3 deletions boards/shields/ls0xx_generic/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ if DISPLAY
if LVGL

config LV_Z_VDB_SIZE
int
default 16

config LV_Z_DPI
int
default 150

config LV_Z_BITS_PER_PIXEL
int
default 1

choice LV_COLOR_DEPTH
Expand Down
21 changes: 21 additions & 0 deletions modules/Kconfig.lvgl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,27 @@ config LVGL

if LVGL

config LV_Z_BITS_PER_PIXEL
int

config LV_Z_DOUBLE_VDB
bool

config LV_Z_DPI
int

config LV_Z_FULL_REFRESH
bool

config LV_Z_VBD_CUSTOM_SECTION
bool

config LV_Z_VDB_ALIGN
int

config LV_Z_VDB_SIZE
int

config LV_Z_POINTER_KSCAN
bool

Expand Down

0 comments on commit 9d7bd52

Please sign in to comment.