boards: fix dependency for LV_COLOR_SWAP_16 to use configdefault
Use configdefault when enabling LV_COLOR_SWAP_16 within boards and shield definitions, to avoid OR'ing the dependencies for the Kconfig symbol. Otherwise, a user manually selecting LV_COLOR_DEPTH will encounter build errors as LV_COLOR_SWAP_16 may be enabled when LV_COLOR_DEPTH_16 is not selected Fixes #81546 Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
This commit is contained in:
parent
027c79add7
commit
c071e27e2d
16 changed files with 16 additions and 15 deletions
|
@ -19,7 +19,7 @@ choice LV_COLOR_DEPTH
|
||||||
default LV_COLOR_DEPTH_16 # 16 bit per pixel
|
default LV_COLOR_DEPTH_16 # 16 bit per pixel
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # LVGL
|
endif # LVGL
|
||||||
|
|
|
@ -19,7 +19,7 @@ choice LV_COLOR_DEPTH
|
||||||
default LV_COLOR_DEPTH_16 # 16 bit per pixel
|
default LV_COLOR_DEPTH_16 # 16 bit per pixel
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # LVGL
|
endif # LVGL
|
||||||
|
|
|
@ -19,7 +19,7 @@ choice LV_COLOR_DEPTH
|
||||||
default LV_COLOR_DEPTH_16 # 16 bit per pixel
|
default LV_COLOR_DEPTH_16 # 16 bit per pixel
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # LVGL
|
endif # LVGL
|
||||||
|
|
|
@ -19,7 +19,7 @@ choice LV_COLOR_DEPTH
|
||||||
default LV_COLOR_DEPTH_16 # 16 bit per pixel
|
default LV_COLOR_DEPTH_16 # 16 bit per pixel
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # LVGL
|
endif # LVGL
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
if BOARD_ESP32S3_EYE_ESP32S3_PROCPU
|
if BOARD_ESP32S3_EYE_ESP32S3_PROCPU
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # BOARD_ESP32S3_EYE_ESP32S3_PROCPU
|
endif # BOARD_ESP32S3_EYE_ESP32S3_PROCPU
|
||||||
|
|
|
@ -87,7 +87,7 @@ choice LV_COLOR_DEPTH
|
||||||
default LV_COLOR_DEPTH_16
|
default LV_COLOR_DEPTH_16
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config INPUT
|
config INPUT
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
if BOARD_M5STACK_ATOMS3_ESP32S3_PROCPU
|
if BOARD_M5STACK_ATOMS3_ESP32S3_PROCPU
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y if LVGL
|
default y if LVGL
|
||||||
|
|
||||||
endif # BOARD_M5STACK_ATOMS3_ESP32S3_PROCPU
|
endif # BOARD_M5STACK_ATOMS3_ESP32S3_PROCPU
|
||||||
|
|
|
@ -29,7 +29,7 @@ config INPUT_FT5336_INTERRUPT
|
||||||
config INPUT
|
config INPUT
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y if LVGL
|
default y if LVGL
|
||||||
|
|
||||||
# Increase initialization priority of MIPI DBI device, so that it initializes
|
# Increase initialization priority of MIPI DBI device, so that it initializes
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y if LVGL
|
default y if LVGL
|
||||||
|
|
|
@ -25,7 +25,7 @@ choice LV_COLOR_DEPTH
|
||||||
default LV_COLOR_DEPTH_16
|
default LV_COLOR_DEPTH_16
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config INPUT
|
config INPUT
|
||||||
|
|
|
@ -20,7 +20,7 @@ config MIPI_DSI_MCUX_2L_SWAP16
|
||||||
endif # MIPI_DSI_MCUX_2L
|
endif # MIPI_DSI_MCUX_2L
|
||||||
|
|
||||||
# Swap 16 bit color setting for LVGL, to send high byte first
|
# Swap 16 bit color setting for LVGL, to send high byte first
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y if !MIPI_DSI_MCUX_2L_SWAP16
|
default y if !MIPI_DSI_MCUX_2L_SWAP16
|
||||||
|
|
||||||
config LV_Z_VDB_SIZE
|
config LV_Z_VDB_SIZE
|
||||||
|
|
|
@ -14,7 +14,7 @@ choice LV_COLOR_DEPTH
|
||||||
default LV_COLOR_DEPTH_16
|
default LV_COLOR_DEPTH_16
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif # LVGL
|
endif # LVGL
|
||||||
|
|
|
@ -20,7 +20,7 @@ choice LV_COLOR_DEPTH
|
||||||
default LV_COLOR_DEPTH_16 if SHIELD_ST7789V_WAVESHARE_240X240
|
default LV_COLOR_DEPTH_16 if SHIELD_ST7789V_WAVESHARE_240X240
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y if SHIELD_ST7789V_WAVESHARE_240X240
|
default y if SHIELD_ST7789V_WAVESHARE_240X240
|
||||||
|
|
||||||
endif # LVGL
|
endif # LVGL
|
||||||
|
|
|
@ -12,7 +12,7 @@ config KERNEL_MEM_POOL
|
||||||
config PWM
|
config PWM
|
||||||
default y if DISPLAY
|
default y if DISPLAY
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y if LVGL
|
default y if LVGL
|
||||||
|
|
||||||
endif # BOARD_ESP32S3_TOUCH_LCD_1_28_ESP32S3_PROCPU
|
endif # BOARD_ESP32S3_TOUCH_LCD_1_28_ESP32S3_PROCPU
|
||||||
|
|
|
@ -12,7 +12,7 @@ config INPUT
|
||||||
|
|
||||||
if LVGL
|
if LVGL
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
configdefault LV_COLOR_16_SWAP
|
||||||
default y
|
default y
|
||||||
|
|
||||||
config LV_Z_BITS_PER_PIXEL
|
config LV_Z_BITS_PER_PIXEL
|
||||||
|
|
|
@ -87,6 +87,7 @@ endchoice
|
||||||
|
|
||||||
config LV_COLOR_16_SWAP
|
config LV_COLOR_16_SWAP
|
||||||
bool
|
bool
|
||||||
|
depends on LV_COLOR_DEPTH_16
|
||||||
|
|
||||||
config LV_Z_FLUSH_THREAD
|
config LV_Z_FLUSH_THREAD
|
||||||
bool "Flush LVGL frames in a separate thread"
|
bool "Flush LVGL frames in a separate thread"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue