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

Making the lua component more standalone #3641

Open
jonsmirl opened this issue Feb 28, 2024 · 0 comments
Open

Making the lua component more standalone #3641

jonsmirl opened this issue Feb 28, 2024 · 0 comments

Comments

@jonsmirl
Copy link

For my application I just need lua as a component in a larger ESP app. Initially I started off by directly porting the standard lua source and got tied up in console problems, so I turned to nodemcu where again I hit console problems (which are being fixed!).

What I am looking for is to turn lua into a component in the Espressif registry. https://components.espressif.com/ Nodemcu would continue to exist but instead it would just use the yaml file to get the lua component from the ESP registry instead of having it in the local tree. This method also makes it easy to pick the lua version you want via the yaml file.

I've hacked around on this in my local tree trying to construct this, some observations....

base_nodemcu. I don't think this should be a component, instead it should be the 'main' directory for a standalone nodemcu app.

embedded_lfs. Not sure how to use this. Do I need it on esp32? I am using this in cmake to prepopulate spiffs
spiffs_create_partition_image(spiffs ../scripts FLASH_IN_PROJECT)
Not sure how this is different than prepopulating the spiffs.

platform -- would need to be merged into the lua component?

modules - a few things in here (pipe) would need to be moved into the component.

task - would move into the component

uzlib -- is this only for host lua?

I also hacked around to remove u8g2 and ucg and replaced them with lvgl from the ESP component library.


The goal of this is to decouple lua from the rest of nodemcu so that it can be stored in the ESP component library.
Thoughts on how to proceed?

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

1 participant