xref: /haiku/3rdparty/docker/cross-compiler/README.md (revision abba71575e34f84c3d75be9d29d6e6caa6c033db)
1# A docker image suitable for cross-compiling Haiku applications
2
3This docker image provides an environment suitable to build Haiku applications
4inside a Linux compiler. It can be used by projects willing to integrate an
5Haiku build inside their CI system, for example.
6
7The docker build of this image prepares the environment by:
8- Building our toolchain
9- Building the haiku hpkg files and downloading dependencies
10- Extracting headers and libraries from the hpkg files to generate a sysroot
11  directory
12- Setting up environment variables for the toolchain to be usable
13
14You can then use the $ARCH-unknown-haiku compiler (for example
15arm-unknown-haiku-gcc) to build your application. All the required files are
16installed in /tools/cross-tools-$ARCH.
17