[yocto] Guide to how to build a minimal system

Khem Raj raj.khem at gmail.com
Thu Nov 3 12:09:26 PDT 2016

> On Nov 2, 2016, at 4:02 AM, Andrew Stuart <andrew.stuart at supercoders.com.au> wrote:
> I want to build a minimal Nginx system that does nothing else but serve static files. Preferably with nothing else installed at all apart from network configuration via /etc/network/interfaces. Perhaps also optionally with ssh.
> Ideally I would be able to provide the HTML files that make up the website via an initramfs file.
> I’d like this to run on x86-64 on KVM.
> I’m looking for a guide that shows me the key steps to implement something minimal like this.  Does such a guide exist?
> I’ve watched several hours of Youtube videos on Yocto, I’ve read various getting started guides and spent several hours installing and building.
> Quite how to configure something down to minimal still is not clear.
> Can someone guide me please as to where to find such docs?

You can start by building core-image-minimal which should be a bare bootable system. So in your own layer write a recipe for your image
and seed it with

require recipes-core/images/core-image-minimal.bb

and then add IMAGE_INSTALL += “nginx”

then build upwards to whatever you need.

> One additional specific question - I can see that there is a web servers layer, but how to only get the one webserver that I want (nginx) as opposed to getting them all?
> thanks
> Andrew
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161103/fd996169/attachment.pgp>

More information about the yocto mailing list