@Fabio_Estevam thanks for sharing your experiences. Running a build here to see if I can duplicate your issues.
I made some progress and now I can add lvgl-demo-fb into IMAGE_INSTALL.
Here is the recipe that I am using now:
# Copyright (C) 2022 Cliff Brake <cbrake@bec-systems.com>
FILESEXTRAPATHS:append := "${THISDIR}/files:"
SUMMARY = "LVGL Demo Application for Framebuffer"
HOMEPAGE = "https://github.com/lvgl/lv_port_linux_frame_buffer"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=802d3d83ae80ef5f343050bf96cce3a4 \
file://lv_drivers/LICENSE;md5=d6fc0df890c5270ef045981b516bb8f2 \
file://lvgl/LICENCE.txt;md5=bf1198c89ae87f043108cea62460b03a"
SRC_URI = "gitsm://github.com/lvgl/lv_port_linux_frame_buffer.git;branch=master;protocol=https"
SRC_URI += "file://0001-improvemakefile.patch"
SRCREV = "a2384b74cec9ffd7407d12ed64a8326b5696f309"
S = "${WORKDIR}/git"
EXTRA_OEMAKE = "DESTDIR=${D}"
do_install() {
oe_runmake install
}
and the lv_port_linux_frame_buffer patch is
From 5462a44c91e1605a73c98ea689ce0c6824f6460e Mon Sep 17 00:00:00 2001
From: Fabio Estevam <festevam@denx.de>
Date: Fri, 13 Jan 2023 14:38:57 -0300
Subject: [PATCH] lvgl_fb: Add a Makefile
Add a Makefile to make installation and uninstallation
process easier.
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Makefile b/Makefile
index ba6972b..c05746d 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,8 @@ CFLAGS ?= -O3 -g0 -I$(LVGL_DIR)/ -Wall -Wshadow -Wundef -Wmissing-prototypes -Wn
LDFLAGS ?= -lm
BIN = demo
+prefix ?= /usr
+bindir ?= $(prefix)/bin
#Collect the files to compile
MAINSRC = ./main.c
@@ -41,3 +43,9 @@ default: $(AOBJS) $(COBJS) $(MAINOBJ)
clean:
rm -f $(BIN) $(AOBJS) $(COBJS) $(MAINOBJ)
+install:
+ install -d $(DESTDIR)$(bindir)
+ install $(BIN) $(DESTDIR)$(bindir)
+
+uninstall:
+ $(RM) -r $(addprefix $(DESTDIR)$(bindir)/,$(BIN))
--
2.25.1
The rootfs/usr/bin/demo binary is getting installed.
I don’t have my board at the moment to try a run-time test.
Thanks
Running the “demo” binary shows the LVGL application successfully on the display
Also, sent the Makefile improvement patch:
2 Likes