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
Makefile
defaults to building for apowerpc-unknown-linux-musl
target. To run targets for something else, you'll need to specify aTARGET
on themake
command-line (e.g.make TARGET=i686-unknown-linux-musl
).For more information about these
TARGET
tuples, see here. You can also runmake shell
and thencrossdev -t help
for 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.