Build custom legato framework with custom yocto distrib

Hi,

I’m working on specific Legato applications that require a patched custom Legato framework on an FX30S Sierra LTE device.

I’m trying to add a web server through lighttpd to configure ethernet connections. To do so, I’m attempting to add a custom layer to swi-linux-src with new recipes to include lighttpd.

I’m building in WSL2 Ubuntu 18 LTS via command line, using Leaf and the swi-linux-src Makefile with custom Legato sources. I’m having trouble linking the legato-src sources with swi-linux-src, since from my understanding, the Legato sources are included in the swi-linux-src folder and are used to build the Yocto distribution with the make image recipe.

How do I use my custom Legato sources instead? Am I correct in using make dev, then running bitbake on my custom image from my own layer alongside the other official Sierra and Yocto layers in swi-linux-src?

Do I need to build separately and then merge Legato and Yocto with swicwe?

Thanks in advance for your help.

You can directly use vscode to build the fx30 legato package

I saw there is already sample code for http server

Thank you, I did not see the sample app, I will try that.

What’s your recommanded setup to work with Legato ? I tried install VSCode with my WSL2 Ubuntu 18 but it seems it is not compatible (libc version issue) so I cannot use it with my current work setup.

Do you use a VM and run VSCode, leaf and all inside it ?

Yes, i used real ubuntu PC or vmware ubuntu 18 image to build legato