Skip to contentSkip to conversation

lvgl: Upgrade to 9.2.2 release

PATCH In review Khem Raj 3 participants 4 messages Mar 22, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 lvgl: Upgrade to 9.2.2 release

Drop backported patches
Enable thorvg packageconfig, build fails without it now

Cc Marek Vasut <[email protected]>
Cc Jaeyoon Jung <[email protected]>
Cc Martin Jansa <[email protected]>
---
 .../0001-thorvg-fix-build-with-gcc-15.patch   |  8 +--
 ...oth-LV_IMAGE_SRC_FILE-and-LV_IMAGE_S.patch | 63 -----------------
 ...e-node-runtime-configurable-via-envi.patch | 45 ------------
 ...Factor-out-fbdev-initialization-code.patch | 52 --------------
 .../0005-Add-DRM-KMS-example-support.patch    | 59 ----------------
 .../files/0006-Add-SDL2-example-support.patch | 69 -------------------
 ...-generate-versioned-shared-libraries.patch | 68 ------------------
 ...fbdev-set-resolution-prior-to-buffer.patch | 29 --------
 meta-oe/recipes-graphics/lvgl/lv-conf.inc     |  9 +++
 ...demo-fb_9.1.0.bb => lvgl-demo-fb_9.2.2.bb} | 16 ++---
 .../lvgl/{lvgl_9.1.0.bb => lvgl_9.2.2.bb}     |  9 +--
 11 files changed, 20 insertions(+), 407 deletions(-)
 delete mode 100644 meta-oe/recipes-graphics/lvgl/files/0002-fix-sdl-handle-both-LV_IMAGE_SRC_FILE-and-LV_IMAGE_S.patch
 delete mode 100644 meta-oe/recipes-graphics/lvgl/files/0003-Make-fbdev-device-node-runtime-configurable-via-envi.patch
 delete mode 100644 meta-oe/recipes-graphics/lvgl/files/0004-Factor-out-fbdev-initialization-code.patch
 delete mode 100644 meta-oe/recipes-graphics/lvgl/files/0005-Add-DRM-KMS-example-support.patch
 delete mode 100644 meta-oe/recipes-graphics/lvgl/files/0006-Add-SDL2-example-support.patch
 delete mode 100644 meta-oe/recipes-graphics/lvgl/files/0007-fix-cmake-generate-versioned-shared-libraries.patch
 delete mode 100644 meta-oe/recipes-graphics/lvgl/files/0008-fix-fbdev-set-resolution-prior-to-buffer.patch
 rename meta-oe/recipes-graphics/lvgl/{lvgl-demo-fb_9.1.0.bb => lvgl-demo-fb_9.2.2.bb} (58%)
 rename meta-oe/recipes-graphics/lvgl/{lvgl_9.1.0.bb => lvgl_9.2.2.bb} (60%)
meta-oe/recipes-graphics/lvgl/files/0001-thorvg-fix-build-with-gcc-15.patch +3 -5
index eefcbe5b9c..e61b5224aa 100644
@@ -20,13 +20,11 @@ Signed-off-by: Martin Jansa <[email protected]>
  src/libs/thorvg/thorvg.h | 1 +
  1 file changed, 1 insertion(+)
 
-diff --git a/src/libs/thorvg/thorvg.h b/src/libs/thorvg/thorvg.h
-index 7f5a84b94..0c84ec66e 100644
 --- a/src/libs/thorvg/thorvg.h
 +++ b/src/libs/thorvg/thorvg.h
-@@ -18,6 +18,7 @@
- #ifndef _THORVG_H_
- #define _THORVG_H_
+@@ -12,6 +12,7 @@
+ #define TVG_BUILD 1
+ 
  
 +#include <cstdint>
  #include <functional>
meta-oe/recipes-graphics/lvgl/files/0002-fix-sdl-handle-both-LV_IMAGE_SRC_FILE-and-LV_IMAGE_S.patch deleted +0 -63

63 lines not on this page · raw message

meta-oe/recipes-graphics/lvgl/files/0003-Make-fbdev-device-node-runtime-configurable-via-envi.patch deleted +0 -45

45 lines not on this page · raw message

meta-oe/recipes-graphics/lvgl/files/0004-Factor-out-fbdev-initialization-code.patch deleted +0 -52

52 lines not on this page · raw message

meta-oe/recipes-graphics/lvgl/files/0005-Add-DRM-KMS-example-support.patch deleted +0 -59

59 lines not on this page · raw message

meta-oe/recipes-graphics/lvgl/files/0006-Add-SDL2-example-support.patch deleted +0 -69

69 lines not on this page · raw message

meta-oe/recipes-graphics/lvgl/files/0007-fix-cmake-generate-versioned-shared-libraries.patch deleted +0 -68

68 lines not on this page · raw message

meta-oe/recipes-graphics/lvgl/files/0008-fix-fbdev-set-resolution-prior-to-buffer.patch deleted +0 -29
deleted file mode 100644
index 5cafb41d56..0000000000
@@ -1,29 +0,0 @@
-From a6f822f75b3ba01b00c028608c93160d09a6ffd1 Mon Sep 17 00:00:00 2001
-From: Jaeyoon Jung <[email protected]>
-Date: Mon, 1 Apr 2024 18:00:39 +0900
-Subject: [PATCH] fix(fbdev): set resolution prior to buffer
-
-Otherwise it ends up with using the default value 800x480 and may fail
-at lv_display_set_buffers due to incorrect resolution.
-
-Upstream-Status: Backport [29662d1c357c15135d076a2a924b9ef056c82120]
-Signed-off-by: Jaeyoon Jung <[email protected]>
----
-
- src/drivers/display/fb/lv_linux_fbdev.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/drivers/display/fb/lv_linux_fbdev.c b/src/drivers/display/fb/lv_linux_fbdev.c
-index b3cc89199..5fb4c5c9f 100644
---- a/src/drivers/display/fb/lv_linux_fbdev.c
-+++ b/src/drivers/display/fb/lv_linux_fbdev.c
-@@ -233,8 +233,8 @@ void lv_linux_fbdev_set_file(lv_display_t * disp, const char * file)
-         draw_buf_2 = malloc(draw_buf_size);
-     }
- 
--    lv_display_set_buffers(disp, draw_buf, draw_buf_2, draw_buf_size, LV_LINUX_FBDEV_RENDER_MODE);
-     lv_display_set_resolution(disp, hor_res, ver_res);
-+    lv_display_set_buffers(disp, draw_buf, draw_buf_2, draw_buf_size, LV_LINUX_FBDEV_RENDER_MODE);
- 
-     if(width > 0) {
-         lv_display_set_dpi(disp, DIV_ROUND_UP(hor_res * 254, width * 10));
meta-oe/recipes-graphics/lvgl/lv-conf.inc +9 -0
index 41133f3438..69e42af922 100644
@@ -33,10 +33,16 @@ LVGL_CONFIG_LV_USE_GRIDNAV = "${@bb.utils.contains('PACKAGECONFIG', 'gridnav', '
 
 LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0"
 
+LVGL_CONFIG_USE_LOTTIE = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"
+
 LVGL_CONFIG_USE_VECTOR_GRAPHICS = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"
 
 LVGL_CONFIG_USE_THORVG_INTERNAL = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"
 
+LVGL_CONFIG_USE_MATRIX = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"
+
+LVGL_CONFIG_USE_FLOAT = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"
+
 DEBUG_BUILD ??= "0"
 
 ALLOW_EMPTY:${PN} = "1"
@@ -84,6 +90,9 @@ do_configure:append() {
         \
         -e "s|^([[:space:]]*#define LV_USE_VECTOR_GRAPHIC[[:space:]]).*|\1${LVGL_CONFIG_USE_VECTOR_GRAPHICS}|" \
         -e "s|^([[:space:]]*#define LV_USE_THORVG_INTERNAL[[:space:]]).*|\1${LVGL_CONFIG_USE_THORVG_INTERNAL}|" \
+        -e "s|^([[:space:]]*#define LV_USE_MATRIX[[:space:]]).*|\1${LVGL_CONFIG_USE_MATRIX}|" \
+        -e "s|^([[:space:]]*#define LV_USE_FLOAT[[:space:]]).*|\1${LVGL_CONFIG_USE_FLOAT}|" \
         \
+        -e "s|^([[:space:]]*#define LV_USE_LOTTIE[[:space:]]).*|\1${LVGL_CONFIG_USE_LOTTIE}|" \
         -i "${S}/lv_conf.h"
 }
meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.2.2.bb renamed from meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.1.0.bb +5 -11
similarity index 58%
rename from meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.1.0.bb
rename to meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.2.2.bb
index 6e8371baad..1228748701 100644
@@ -5,18 +5,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=802d3d83ae80ef5f343050bf96cce3a4 \
                     file://lvgl/LICENCE.txt;md5=bf1198c89ae87f043108cea62460b03a"
 
 SRC_URI = "\
-	git://github.com/lvgl/lv_port_linux_frame_buffer.git;protocol=https;branch=master;name=demo \
-	git://github.com/lvgl/lvgl;protocol=https;branch=master;name=lvgl;subdir=git/lvgl \
-	file://0002-fix-sdl-handle-both-LV_IMAGE_SRC_FILE-and-LV_IMAGE_S.patch;patchdir=lvgl \
-	file://0003-Make-fbdev-device-node-runtime-configurable-via-envi.patch \
-	file://0004-Factor-out-fbdev-initialization-code.patch \
-	file://0005-Add-DRM-KMS-example-support.patch \
-	file://0006-Add-SDL2-example-support.patch \
-	file://0007-fix-cmake-generate-versioned-shared-libraries.patch;patchdir=lvgl \
-	file://0008-fix-fbdev-set-resolution-prior-to-buffer.patch;patchdir=lvgl \
+	git://github.com/lvgl/lv_port_linux_frame_buffer.git;protocol=https;branch=release/v9.2;name=demo \
+	git://github.com/lvgl/lvgl;protocol=https;branch=release/v9.2;name=lvgl;subdir=git/lvgl \
+	file://0001-thorvg-fix-build-with-gcc-15.patch;patchdir=lvgl \
 	"
-SRCREV_demo = "dccc6a1ca48372aa993dbea7a8e17dec6f42df6a"
-SRCREV_lvgl = "e1c0b21b2723d391b885de4b2ee5cc997eccca91"
+SRCREV_demo = "c924e24c7aa55317521bcd9dd75ce9337508f5a5"
+SRCREV_lvgl = "7f07a129e8d77f4984fff8e623fd5be18ff42e74"
 SRCREV_FORMAT = "demo_lvgl"
 
 EXTRA_OEMAKE = "DESTDIR=${D}"
meta-oe/recipes-graphics/lvgl/lvgl_9.2.2.bb renamed from meta-oe/recipes-graphics/lvgl/lvgl_9.1.0.bb +3 -6
similarity index 60%
rename from meta-oe/recipes-graphics/lvgl/lvgl_9.1.0.bb
rename to meta-oe/recipes-graphics/lvgl/lvgl_9.2.2.bb
index b07cdfc8f6..935e84ad23 100644
@@ -9,13 +9,10 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=bf1198c89ae87f043108cea62460b03a"
 
 SRC_URI = "\
-	git://github.com/lvgl/lvgl;protocol=https;branch=master \
-	file://0002-fix-sdl-handle-both-LV_IMAGE_SRC_FILE-and-LV_IMAGE_S.patch \
-	file://0007-fix-cmake-generate-versioned-shared-libraries.patch \
-	file://0008-fix-fbdev-set-resolution-prior-to-buffer.patch \
-        file://0001-thorvg-fix-build-with-gcc-15.patch \
+	git://github.com/lvgl/lvgl;protocol=https;branch=release/v9.2 \
+    file://0001-thorvg-fix-build-with-gcc-15.patch \
 	"
-SRCREV = "e1c0b21b2723d391b885de4b2ee5cc997eccca91"
+SRCREV = "7f07a129e8d77f4984fff8e623fd5be18ff42e74"
 
 inherit cmake
 
#2 lore raw
In reply to Khem Raj
Quoted 3 lines · Khem Raj

Drop backported patches
Enable thorvg packageconfig, build fails without it now

Did you plan to add thorvg to default PACKAGECONFIG (I don't see that in the commit) or did you mean just adding those LV_USE_MATRIX, LV_USE_FLOAT, LV_USE_LOTTIE to be enabled when someone enables thorvg in bbappend?

Otherwise LGTM, thanks.

Quoted 5 lines
Cc Marek Vasut <[email protected]>
Cc Jaeyoon Jung <[email protected]>
Cc Martin Jansa <[email protected]>

..

Quoted 31 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +9 -0
index 41133f3438..69e42af922 100644
@@ -33,10 +33,16 @@ LVGL_CONFIG_LV_USE_GRIDNAV = "${@bb.utils.contains('PACKAGECONFIG', 'gridnav', '
 
 LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0"
 
+LVGL_CONFIG_USE_LOTTIE = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"
+
 LVGL_CONFIG_USE_VECTOR_GRAPHICS = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"
 
 LVGL_CONFIG_USE_THORVG_INTERNAL = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"
 
+LVGL_CONFIG_USE_MATRIX = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"
+
+LVGL_CONFIG_USE_FLOAT = "${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"
+
 DEBUG_BUILD ??= "0"
 
 ALLOW_EMPTY:${PN} = "1"
@@ -84,6 +90,9 @@ do_configure:append() {
         \
         -e "s|^([[:space:]]*#define LV_USE_VECTOR_GRAPHIC[[:space:]]).*|\1${LVGL_CONFIG_USE_VECTOR_GRAPHICS}|" \
         -e "s|^([[:space:]]*#define LV_USE_THORVG_INTERNAL[[:space:]]).*|\1${LVGL_CONFIG_USE_THORVG_INTERNAL}|" \
+        -e "s|^([[:space:]]*#define LV_USE_MATRIX[[:space:]]).*|\1${LVGL_CONFIG_USE_MATRIX}|" \
+        -e "s|^([[:space:]]*#define LV_USE_FLOAT[[:space:]]).*|\1${LVGL_CONFIG_USE_FLOAT}|" \
         \
+        -e "s|^([[:space:]]*#define LV_USE_LOTTIE[[:space:]]).*|\1${LVGL_CONFIG_USE_LOTTIE}|" \
         -i "${S}/lv_conf.h"
 }

...

author
#3 lore raw
Quoted 10 lines · Martin Jansa
Quoted 3 lines · Khem Raj

Drop backported patches
Enable thorvg packageconfig, build fails without it now

Did you plan to add thorvg to default PACKAGECONFIG (I don't see that in the commit) or did you mean just adding those LV_USE_MATRIX, LV_USE_FLOAT, LV_USE_LOTTIE to be enabled when someone enables thorvg in bbappend?

Initially I did but it was not needed as I could fix the builds with it without it. I will update the commit message accordingly

Quoted 55 lines

Otherwise LGTM, thanks.

Quoted 5 lines
Cc Marek Vasut <[email protected]>
Cc Jaeyoon Jung <[email protected]>
Cc Martin Jansa <[email protected]>

..

Review

Quoted 1 line
(quoted diff) +0 -0

b/meta-oe/recipes-graphics/lvgl/lv-conf.inc

meta-oe/recipes-graphics/lvgl/lv-conf.inc LVGL_CONFIG_LV_USE_GRIDNAV =

Quoted 4 lines

index 41133f3438..69e42af922 100644

meta-oe/recipes-graphics/lvgl/lv-conf.inc +0 -0
@@ -33,10 +33,16 @@ LVGL_CONFIG_LV_USE_GRIDNAV =

"${@bb.utils.contains('PACKAGECONFIG', 'gridnav', '

meta-oe/recipes-graphics/lvgl/lv-conf.inc LVGL_CONFIG_LV_USE_GRIDNAV = "${@bb.utils.contains('PACKAGECONFIG', 'gridnav', '

Quoted 4 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +1 -0
 LVGL_CONFIG_LV_THEME_DEFAULT_DARK ?= "0"
 
+LVGL_CONFIG_USE_LOTTIE = "${@bb.utils.contains('PACKAGECONFIG',

'thorvg', '1', '0', d)}"

meta-oe/recipes-graphics/lvgl/lv-conf.inc LVGL_CONFIG_LV_USE_GRIDNAV = · line 37

Quoted 2 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +1 -0
+
 LVGL_CONFIG_USE_VECTOR_GRAPHICS =

"${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"

meta-oe/recipes-graphics/lvgl/lv-conf.inc LVGL_CONFIG_LV_USE_GRIDNAV = · line 38

Quoted 2 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +0 -0
 LVGL_CONFIG_USE_THORVG_INTERNAL =

"${@bb.utils.contains('PACKAGECONFIG', 'thorvg', '1', '0', d)}"

meta-oe/recipes-graphics/lvgl/lv-conf.inc LVGL_CONFIG_LV_USE_GRIDNAV = · line 39

Quoted 2 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +1 -0
+LVGL_CONFIG_USE_MATRIX = "${@bb.utils.contains('PACKAGECONFIG',

'thorvg', '1', '0', d)}"

meta-oe/recipes-graphics/lvgl/lv-conf.inc LVGL_CONFIG_LV_USE_GRIDNAV = · line 41

Quoted 2 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +2 -0
+
+LVGL_CONFIG_USE_FLOAT = "${@bb.utils.contains('PACKAGECONFIG',

'thorvg', '1', '0', d)}"

meta-oe/recipes-graphics/lvgl/lv-conf.inc do_configure:append() { · line 91

Quoted 7 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +1 -0
+
 DEBUG_BUILD ??= "0"
 
 ALLOW_EMPTY:${PN} = "1"
@@ -84,6 +90,9 @@ do_configure:append() {
         \
         -e "s|^([[:space:]]*#define

LV_USE_VECTOR_GRAPHIC[[:space:]]).*|\1${LVGL_CONFIG_USE_VECTOR_GRAPHICS}|" \

meta-oe/recipes-graphics/lvgl/lv-conf.inc do_configure:append() { · line 92

Quoted 1 line
meta-oe/recipes-graphics/lvgl/lv-conf.inc +0 -0
         -e "s|^([[:space:]]*#define

LV_USE_THORVG_INTERNAL[[:space:]]).*|\1${LVGL_CONFIG_USE_THORVG_INTERNAL}|" \

meta-oe/recipes-graphics/lvgl/lv-conf.inc do_configure:append() { · line 93

Quoted 1 line
meta-oe/recipes-graphics/lvgl/lv-conf.inc +1 -0
+        -e "s|^([[:space:]]*#define

LV_USE_MATRIX[[:space:]]).*|\1${LVGL_CONFIG_USE_MATRIX}|" \

meta-oe/recipes-graphics/lvgl/lv-conf.inc do_configure:append() { · line 94

Quoted 1 line
meta-oe/recipes-graphics/lvgl/lv-conf.inc +1 -0
+        -e "s|^([[:space:]]*#define

LV_USE_FLOAT[[:space:]]).*|\1${LVGL_CONFIG_USE_FLOAT}|" \

meta-oe/recipes-graphics/lvgl/lv-conf.inc do_configure:append() { · line 96

Quoted 2 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +1 -0
         \
+        -e "s|^([[:space:]]*#define

LV_USE_LOTTIE[[:space:]]).*|\1${LVGL_CONFIG_USE_LOTTIE}|" \

Quoted 2 lines
meta-oe/recipes-graphics/lvgl/lv-conf.inc +0 -0
         -i "${S}/lv_conf.h"
 }

...