User:Zulu Foxtrott/ARM64/Blocks/Host

Setting up a cross build environment
Depending on the operating system providing the current command-line environment, instructions on how to install the toolchain for cross compilation differ. Consult the specific operating system's documentation. On debian and the likes  and   would need to be installed.

In case the host system runs Gentoo, set up :

Installing crossdev
First create an overlay that crossdev can use:

Then instruct Portage and crossdev to use this overlay create:

Now install crossdev:

Installing the cross build toolchain
Install the cross toolchain:

Setting environment variables
Finally set the necessary environment variables:

Do not omit the trailing "":

Installing required tools
Install GNU Parted and the Device Tree Compiler (dtc). The easiest way to do that depends on the host system's operating system. On debian and descendants one would usually use  followed by the package name.

On Gentoo the respective packages - and  - can be installed with:

Optional: Installing cryptsetup for device encryption
In case the new installation is to be encrypted install cryptsetup version 2.0.0 or newer.

On a Gentoo host system this can be accomplished by installing :

If unsure, verify the version with: