lvgl / lv_port_linux

LVGL configured to work with a standard Linux framebuffer
MIT License
260 stars 160 forks source link

Packaging for buildroot #17

Open fifteenhex opened 3 years ago

fifteenhex commented 3 years ago

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

kisvegabor commented 3 years ago

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?

fifteenhex commented 3 years ago

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?

kisvegabor commented 3 years ago

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?

fifteenhex commented 3 years ago

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.

stale[bot] commented 2 years ago

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.

kisvegabor commented 2 years ago

Hi,

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

legerch commented 2 years ago

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

kisvegabor commented 2 years ago

I'm also curious about it. @fifteenhex ?

embetrix commented 2 years ago

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.

kisvegabor commented 2 years ago

Nice, thanks!

legerch commented 2 years ago

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 ?

embetrix commented 2 years ago

@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 ?

kisvegabor commented 2 years ago

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

symfund commented 2 years ago

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))

fifteenhex commented 2 years ago

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.

stale[bot] commented 1 year ago

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.

symfund commented 1 year ago

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.