lv_port_linux icon indicating copy to clipboard operation
lv_port_linux copied to clipboard

Packaging for buildroot

Open fifteenhex opened this issue 3 years ago • 17 comments

Hi,

Packing lvgl for buildroot would be really nice and I'm thinking of having a go at it. This would be the right repo use as the source for that?

Cheers,

Daniel

fifteenhex avatar Nov 07 '21 05:11 fifteenhex

Hi,

I don't know mainroot in detail. Does it mean an extra file like Kconfig? If so LVGL on its own can be added too?

kisvegabor avatar Nov 08 '21 13:11 kisvegabor

Hi,

I don't know mainroot in detail. Does it mean an extra file like Kconfig? If so LVGL on its own can be added too?

Buildroot takes a simple config file (bunch of make macros really) and builds, configures and installs for the target. LVGL can be added but I'm wondering which is the right repo to target. If this repo builds LVGL to run on linux then maybe it's this repo, but maybe some of the other repos should be built as libraries or something?

fifteenhex avatar Nov 08 '21 13:11 fifteenhex

Buildroot takes a simple config file (bunch of make macros really) and builds, configures and installs for the target.

Thanks!

I'm wondering which is the right repo to target.

There are other drivers that can be used on Linux too: SDL, Wayland, GTK. These are in the lv_drivers repo and have no dedicated project that works with make.

If the lvgl can be handled separately, can we use it as a "sub-library" or so inside this or other projects?

kisvegabor avatar Nov 08 '21 13:11 kisvegabor

It looks like lv_drivers creates a static .a library. So I think that would be one package in buildroot and then maybe the main lvgl will be another package that depends on the lv_drivers one. I'll have a good at getting this to build in buildroot and get back to you.

fifteenhex avatar Nov 09 '21 11:11 fifteenhex

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 16 '22 05:04 stale[bot]

Hi,

Is this topic still relevant? Do you still think it's a good idea to add buildroot support at least the lvgl repo?

kisvegabor avatar Apr 16 '22 12:04 kisvegabor

Hi, Sorry for dig out old issue but this is the only issue mentionning buildroot packing, do we have any news on this ? That would be really helpful for embedded linux

legerch avatar Jul 14 '22 13:07 legerch

I'm also curious about it. @fifteenhex ?

kisvegabor avatar Jul 14 '22 16:07 kisvegabor

just as note lvgl is already supported in yocto: https://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-graphics/lvgl

But building it using own recipe is quite easy.

embetrix avatar Aug 26 '22 08:08 embetrix

Nice, thanks!

kisvegabor avatar Aug 28 '22 14:08 kisvegabor

Thank you for your reply @embexus, that will be helpful ! I see in .bb recipe than default lv_conf.h is used (and can be replaced with our own later), do we have an option to use KConfig file from lvgl repository ?

legerch avatar Aug 28 '22 15:08 legerch

@kisvegabor in the documentation https://docs.lvgl.io/master/porting/project.html ist states that make menuconfig can be used but it does not work ?! any additional steps ?

embetrix avatar Aug 29 '22 08:08 embetrix

LVGL provides only a Kconfig file, meaning that it can be used in an environment where make menuconfig is implemented.

kisvegabor avatar Aug 29 '22 11:08 kisvegabor

Since this repo has git submodules, so in Buildroot LVGL.mk must have the following line: LV_PORT_LINUX_FRAME_BUFFER_GIT_SUBMODULES = YES

This repo provides both cmake and general Makefile, in LVGL.mk, we can add $(eval $(generic-package))
or $(eval $(cmake-package))

symfund avatar Sep 16 '22 06:09 symfund

Sorry,

I missed the many notifications about this. I also got this to work in buildroot but as LVGL doesn't really generate a shared library that can go between projects it didn't seem to be the right way to do it. A package for the app with LVGL as a submodule seemed more workable.

fifteenhex avatar Sep 19 '22 11:09 fifteenhex

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 20 '23 02:04 stale[bot]

Nuvoton has packaged LVGL (w/ Wayland) in buildroot on MA35D1 (Cortex-A35, aarch64) platform. For using LVGL with Wayland on MA35D1, please contact Nuvoton sales representative.

symfund avatar May 31 '23 01:05 symfund