This repository contains a Makefile that can be used to build Gentoo
crossdev toolchains and images. It leverages the power of Podman to build
and install cross build tools on top of the official gentoo/stage3 image.
Assuming Podman is configured properly on your system, all
you need to do is run make.
This
Makefiledefaults to building for apowerpc-unknown-linux-musltarget. To run targets for something else, you'll need to specify aTARGETon themakecommand-line (e.g.make TARGET=i686-unknown-linux-musl).For more information about these
TARGETtuples, see here. You can also runmake shelland thencrossdev -t helpfor more information on supported targets.
Built prefixes live in the targets directory.
You can install additional packages by running make shell TARGET=YOUR_TARGET
followed by YOUR_TARGET-emerge PKG .. PKG_N.
For more information on how this works see this page and the Gentoo Handbook.