diff options
| author | Peter Kjellerstedt <pkj@axis.com> | 2025-10-25 05:17:43 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-10-24 20:41:20 -0700 |
| commit | 9c201b0f8550870f6f586a604395ba30a8c42753 (patch) | |
| tree | 5920b89cf9e8b13d3561162a2f1229d23c6331f6 | |
| parent | adcc8f48a0e8853ad575c4c84ecf16cb5b76b7da (diff) | |
| download | meta-openembedded-9c201b0f8550870f6f586a604395ba30a8c42753.tar.gz | |
lvgl-demo-fb: Update to 9.4.0
* Add +git to PV since there is no v9.4.0 tag for the
lv_port_linux_frame_buffer repository.
* Do not run the default do_install() as it will install all of lvgl.
* Remove the hack in do_configure:prepend() for SDL2_image as cmake
(with a little help from pkg-config) now finds SDL2_image correctly.
License-Update: Copyright year updated to 2025
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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 @@ | |||
| 1 | From a9e41f7e9590c757e74877cace6442dd676223ff Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Martin Jansa <martin.jansa@gmail.com> | ||
| 3 | Date: Fri, 21 Mar 2025 10:25:43 +0000 | ||
| 4 | Subject: [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 | |||
| 16 | Upstream-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 | |||
| 18 | Signed-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 @@ | |||
| 1 | PACKAGECONFIG ??= "drm" | 1 | PACKAGECONFIG ??= "drm" |
| 2 | 2 | ||
| 3 | PACKAGECONFIG[drm] = ",,libdrm" | 3 | PACKAGECONFIG[drm] = ",,libdrm libevdev" |
| 4 | PACKAGECONFIG[fbdev] = ",," | 4 | PACKAGECONFIG[fbdev] = ",,libevdev" |
| 5 | PACKAGECONFIG[gridnav] = ",," | 5 | PACKAGECONFIG[gridnav] = ",," |
| 6 | PACKAGECONFIG[thorvg] = ",," | 6 | PACKAGECONFIG[thorvg] = ",," |
| 7 | PACKAGECONFIG[sdl] = ",,virtual/libsdl2 libsdl2-image" | 7 | PACKAGECONFIG[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 @@ | |||
| 1 | SUMMARY = "LVGL Demo Application for Framebuffer" | ||
| 2 | HOMEPAGE = "https://github.com/lvgl/lv_port_linux_frame_buffer" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=802d3d83ae80ef5f343050bf96cce3a4 \ | ||
| 5 | file://lvgl/LICENCE.txt;md5=bf1198c89ae87f043108cea62460b03a" | ||
| 6 | |||
| 7 | SRC_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 | " | ||
| 12 | SRCREV_demo = "c924e24c7aa55317521bcd9dd75ce9337508f5a5" | ||
| 13 | SRCREV_lvgl = "7f07a129e8d77f4984fff8e623fd5be18ff42e74" | ||
| 14 | SRCREV_FORMAT = "demo_lvgl" | ||
| 15 | |||
| 16 | EXTRA_OEMAKE = "DESTDIR=${D}" | ||
| 17 | |||
| 18 | LVGL_CONFIG_DRM_CARD ?= "/dev/dri/card0" | ||
| 19 | LVGL_CONFIG_LV_USE_LOG = "1" | ||
| 20 | LVGL_CONFIG_LV_LOG_PRINTF = "1" | ||
| 21 | LVGL_CONFIG_LV_MEM_SIZE = "(256 * 1024U)" | ||
| 22 | LVGL_CONFIG_LV_USE_FONT_COMPRESSED = "1" | ||
| 23 | require lv-conf.inc | ||
| 24 | |||
| 25 | inherit cmake | ||
| 26 | |||
| 27 | |||
| 28 | do_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 | |||
| 35 | do_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 @@ | |||
| 1 | SUMMARY = "LVGL Demo Application for Framebuffer" | ||
| 2 | HOMEPAGE = "https://github.com/lvgl/lv_port_linux_frame_buffer" | ||
| 3 | |||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=802d3d83ae80ef5f343050bf96cce3a4 \ | ||
| 6 | file://lvgl/LICENCE.txt;md5=4570b6241b4fced1d1d18eb691a0e083" | ||
| 7 | |||
| 8 | DEPENDS = "python3-pcpp-native" | ||
| 9 | |||
| 10 | PV .= "+git" | ||
| 11 | |||
| 12 | SRC_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 | |||
| 17 | SRCREV_demo = "71050624acd8a52ab7d365d0d12acf9bf5fe41db" | ||
| 18 | SRCREV_lvgl = "c016f72d4c125098287be5e83c0f1abed4706ee5" | ||
| 19 | SRCREV_FORMAT = "demo_lvgl" | ||
| 20 | |||
| 21 | inherit cmake pkgconfig | ||
| 22 | |||
| 23 | LVGL_CONFIG_DRM_CARD ?= "/dev/dri/card0" | ||
| 24 | LVGL_CONFIG_LV_USE_LOG = "1" | ||
| 25 | LVGL_CONFIG_LV_LOG_PRINTF = "1" | ||
| 26 | LVGL_CONFIG_LV_MEM_SIZE = "(256 * 1024U)" | ||
| 27 | LVGL_CONFIG_LV_USE_FONT_COMPRESSED = "1" | ||
| 28 | require lv-conf.inc | ||
| 29 | |||
| 30 | do_install() { | ||
| 31 | install -d ${D}${bindir} | ||
| 32 | install -m 0755 ${B}/bin/lvglsim ${D}${bindir} | ||
| 33 | } | ||
