Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packaging for buildroot #17

Open
fifteenhex opened this issue Nov 7, 2021 · 17 comments
Open

Packaging for buildroot #17

fifteenhex opened this issue Nov 7, 2021 · 17 comments

Comments

@fifteenhex
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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
Copy link

stale bot commented Apr 16, 2022

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 stale bot added the stale label Apr 16, 2022
@kisvegabor
Copy link
Member

Hi,

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

@stale stale bot removed the stale label Apr 16, 2022
@legerch
Copy link

legerch commented Jul 14, 2022

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
Copy link
Member

I'm also curious about it.
@fifteenhex ?

@embetrix
Copy link
Contributor

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
Copy link
Member

Nice, thanks!

@legerch
Copy link

legerch commented Aug 28, 2022

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
Copy link
Contributor

@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
Copy link
Member

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

@symfund
Copy link

symfund commented Sep 16, 2022

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
Copy link
Author

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 fifteenhex changed the title Packing for buildroot Packaging for buildroot Sep 19, 2022
@stale
Copy link

stale bot commented Apr 20, 2023

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 stale bot added the stale label Apr 20, 2023
@symfund
Copy link

symfund commented May 31, 2023

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.

@stale stale bot removed the stale label May 31, 2023
js214 added a commit to js214/lv_port_linux that referenced this issue Jul 26, 2024
Add options `USE_FBDEV`, `USE_DRM`, `USE_SDL2` to CMakeLists.txt to
select the backend. Also change `lv_conf.h` to make fbdev the optional
default.

Add option `USE_THOR` to CMakeLists.txt so as to make using thorvg
optional.  This way C++ is not required for building. Also change
`lv_conf.h` to make building the internal ThorVG optional.

Mark lvgl as `EXCLUDE_FROM_ALL` in CMakeLists.txt so it does not get
installed on the target when `lv_port_linux` is installed.

These changes are useful to enable including this package in buildroot
(see issue lvgl#17).

Signed-off-by: Jakob Kastelic <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants