summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-graphics/lvgl/files/0001-thorvg-fix-build-with-gcc-15.patch32
-rw-r--r--meta-oe/recipes-graphics/lvgl/lv-conf.inc4
-rw-r--r--meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.2.2.bb38
-rw-r--r--meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.4.0.bb33
4 files changed, 35 insertions, 72 deletions
diff --git a/meta-oe/recipes-graphics/lvgl/files/0001-thorvg-fix-build-with-gcc-15.patch b/meta-oe/recipes-graphics/lvgl/files/0001-thorvg-fix-build-with-gcc-15.patch
deleted file mode 100644
index e61b5224aa..0000000000
--- a/meta-oe/recipes-graphics/lvgl/files/0001-thorvg-fix-build-with-gcc-15.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1From a9e41f7e9590c757e74877cace6442dd676223ff Mon Sep 17 00:00:00 2001
2From: Martin Jansa <martin.jansa@gmail.com>
3Date: Fri, 21 Mar 2025 10:25:43 +0000
4Subject: [PATCH] thorvg: fix build with gcc-15
5
6* add missing include to fix:
7 src/libs/thorvg/thorvg.h:357:20: error: 'uint8_t' has not been declared
8 357 | Result opacity(uint8_t o) noexcept;
9 | ^~~~~~~
10
11* not needed with latest master where it was resolved differently in
12 fc5c15638 feat(thorvg): use LVGL's malloc/realloc/zalloc/free (#7772)
13 which includes stdlib/lv_string.h which includes misc/lv_types.h which
14 includes stdint
15
16Upstream-Status: Pending [not needed with latest master where it was resolved differently in fc5c15638 feat(thorvg): use LVGL's malloc/realloc/zalloc/free (#7772)]
17
18Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
19---
20 src/libs/thorvg/thorvg.h | 1 +
21 1 file changed, 1 insertion(+)
22
23--- a/src/libs/thorvg/thorvg.h
24+++ b/src/libs/thorvg/thorvg.h
25@@ -12,6 +12,7 @@
26 #define TVG_BUILD 1
27
28
29+#include <cstdint>
30 #include <functional>
31 #include <memory>
32 #include <string>
diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc
index d341c8a6da..7c16eb3936 100644
--- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc
+++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc
@@ -1,7 +1,7 @@
1PACKAGECONFIG ??= "drm" 1PACKAGECONFIG ??= "drm"
2 2
3PACKAGECONFIG[drm] = ",,libdrm" 3PACKAGECONFIG[drm] = ",,libdrm libevdev"
4PACKAGECONFIG[fbdev] = ",," 4PACKAGECONFIG[fbdev] = ",,libevdev"
5PACKAGECONFIG[gridnav] = ",," 5PACKAGECONFIG[gridnav] = ",,"
6PACKAGECONFIG[thorvg] = ",," 6PACKAGECONFIG[thorvg] = ",,"
7PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image" 7PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image"
diff --git a/meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.2.2.bb b/meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.2.2.bb
deleted file mode 100644
index ede5c16f3f..0000000000
--- a/meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.2.2.bb
+++ /dev/null
@@ -1,38 +0,0 @@
1SUMMARY = "LVGL Demo Application for Framebuffer"
2HOMEPAGE = "https://github.com/lvgl/lv_port_linux_frame_buffer"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=802d3d83ae80ef5f343050bf96cce3a4 \
5 file://lvgl/LICENCE.txt;md5=bf1198c89ae87f043108cea62460b03a"
6
7SRC_URI = "\
8 git://github.com/lvgl/lv_port_linux_frame_buffer.git;protocol=https;branch=release/v9.2;name=demo \
9 git://github.com/lvgl/lvgl;protocol=https;branch=release/v9.2;name=lvgl;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/lvgl \
10 file://0001-thorvg-fix-build-with-gcc-15.patch;patchdir=lvgl \
11 "
12SRCREV_demo = "c924e24c7aa55317521bcd9dd75ce9337508f5a5"
13SRCREV_lvgl = "7f07a129e8d77f4984fff8e623fd5be18ff42e74"
14SRCREV_FORMAT = "demo_lvgl"
15
16EXTRA_OEMAKE = "DESTDIR=${D}"
17
18LVGL_CONFIG_DRM_CARD ?= "/dev/dri/card0"
19LVGL_CONFIG_LV_USE_LOG = "1"
20LVGL_CONFIG_LV_LOG_PRINTF = "1"
21LVGL_CONFIG_LV_MEM_SIZE = "(256 * 1024U)"
22LVGL_CONFIG_LV_USE_FONT_COMPRESSED = "1"
23require lv-conf.inc
24
25inherit cmake
26
27
28do_configure:prepend() {
29 if [ "${LVGL_CONFIG_USE_SDL}" -eq 1 ] ; then
30 # Add libsdl build dependency, SDL2_image has no cmake file
31 sed -i '/^target_link_libraries/ s@pthread@& SDL2_image@' "${S}/CMakeLists.txt"
32 fi
33}
34
35do_install:append() {
36 install -d ${D}${bindir}
37 install -m 0755 ${S}/bin/main ${D}${bindir}/lvgl
38}
diff --git a/meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.4.0.bb b/meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.4.0.bb
new file mode 100644
index 0000000000..3185d37c5c
--- /dev/null
+++ b/meta-oe/recipes-graphics/lvgl/lvgl-demo-fb_9.4.0.bb
@@ -0,0 +1,33 @@
1SUMMARY = "LVGL Demo Application for Framebuffer"
2HOMEPAGE = "https://github.com/lvgl/lv_port_linux_frame_buffer"
3
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=802d3d83ae80ef5f343050bf96cce3a4 \
6 file://lvgl/LICENCE.txt;md5=4570b6241b4fced1d1d18eb691a0e083"
7
8DEPENDS = "python3-pcpp-native"
9
10PV .= "+git"
11
12SRC_URI = "\
13 git://github.com/lvgl/lv_port_linux_frame_buffer.git;protocol=https;branch=release/v9.4;name=demo \
14 git://github.com/lvgl/lvgl;protocol=https;branch=release/v9.4;tag=v9.4.0;name=lvgl;subdir=${BB_GIT_DEFAULT_DESTSUFFIX}/lvgl \
15"
16
17SRCREV_demo = "71050624acd8a52ab7d365d0d12acf9bf5fe41db"
18SRCREV_lvgl = "c016f72d4c125098287be5e83c0f1abed4706ee5"
19SRCREV_FORMAT = "demo_lvgl"
20
21inherit cmake pkgconfig
22
23LVGL_CONFIG_DRM_CARD ?= "/dev/dri/card0"
24LVGL_CONFIG_LV_USE_LOG = "1"
25LVGL_CONFIG_LV_LOG_PRINTF = "1"
26LVGL_CONFIG_LV_MEM_SIZE = "(256 * 1024U)"
27LVGL_CONFIG_LV_USE_FONT_COMPRESSED = "1"
28require lv-conf.inc
29
30do_install() {
31 install -d ${D}${bindir}
32 install -m 0755 ${B}/bin/lvglsim ${D}${bindir}
33}