lvgl-demo-fb: Use Kconfig to configure

This switches the recipe from manipulating the lv_conf.h file directly,
to instead using Kconfig to configure lvgl-demo-fb.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Peter Kjellerstedt 2025-10-25 05:17:45 +02:00 committed by Khem Raj
parent 1c1c5c5633
commit 0df1a91b39
2 changed files with 8 additions and 5 deletions

View File

@ -0,0 +1,6 @@
CONFIG_LV_COLOR_DEPTH_32=y
CONFIG_LV_MEM_SIZE_KILOBYTES=256
CONFIG_LV_USE_LOG=y
CONFIG_LV_LOG_PRINTF=y
CONFIG_LV_USE_FONT_COMPRESSED=y
CONFIG_LV_USE_DEMO_WIDGETS=y

View File

@ -20,13 +20,10 @@ SRCREV_FORMAT = "demo_lvgl"
inherit cmake pkgconfig
LVGL_CONFIG_DRM_CARD ?= "/dev/dri/card0"
LVGL_CONFIG_LV_USE_LOG = "1"
LVGL_CONFIG_LV_LOG_PRINTF = "1"
LVGL_CONFIG_LV_MEM_SIZE = "(256 * 1024U)"
LVGL_CONFIG_LV_USE_FONT_COMPRESSED = "1"
require lv-conf.inc
KCONFIG_CONFIG_ROOTDIR = "${S}/lvgl"
do_install() {
install -d ${D}${bindir}
install -m 0755 ${B}/bin/lvglsim ${D}${bindir}