Building your own distro
At the start of the previous chapter, I told you about distro layers such as meta-poky
and the distribution metadata contained in their conf/distro
subdirectories. As we have seen, you don’t need your own distro layer to build your own custom images. You can go a long way without ever having to modify any of Poky’s distribution metadata. But if you want to alter distro policies (e.g., features, C library implementations, choice of package manager, and so on), then you can choose to build your own distro.
Building your own distro is a three-step process:
- Create a new distro layer.
- Create a distro configuration file.
- Add more recipes to your distro.
But before we get into the technical details of how to do that, let’s consider when it’s the right time to roll your own distro.
When and when not to
Distro settings define the package format (rpm
, deb
, or ipk
), package feed, init
system (systemd...