LV_COLOR_SWAP_16
has incorrect dependencies across Zephyr
#81546
Labels
area: LVGL
Light and Versatile Graphics Library Support
bug
The issue is a bug, or the PR is fixing a bug
Describe the bug
The KConfig
LV_COLOR_SWAP_16
is defined to depend onLV_COLOR_DEPTH_16
within LVGL itself: https://github.com/zephyrproject-rtos/lvgl/blob/a76caad0aa99838bb7a3315aaaf07e50d595c284/Kconfig#L40However, many shields or boards in Zephyr simply enable this setting if LVGL is enabled, since they assume LVGL will be built with
LV_COLOR_DEPTH_16
when targeting that shield/board. For example, see here:zephyr/boards/weact/mini_stm32h743/Kconfig.defconfig
Line 16 in 4789820
This assumption is broken if a sample or user manually selects the LVGL color depth setting, such as in the transparency sample:
zephyr/samples/modules/lvgl/screen_transparency/prj.conf
Line 6 in 4789820
This results in a build error, since
LV_COLOR_DEPTH_16
should not logically be enabled.Please also mention any information which could help others to understand
the problem you're facing:
m5stack_atoms3/esp32s3/procpu
To Reproduce
Steps to reproduce the behavior:
west build -p -b m5stack_atoms3/esp32s3/procpu samples/modules/lvgl/screen_transparency -T sample.modules.lvgl.screen_transparency
Expected behavior
Setting the choice Kconfig
LV_COLOR_DEPTH
should be possible without inducing a build error.Impact
Blocking CI on #81293
Logs and console output
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: