mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-31 12:14:27 +01:00
`cross` is an open source tool that provides zero-setup cross compile for rust binaries. Add documentation on this tool for compiling kata-ctl tool and Cross.toml file that provides required configuration for installing dependencies for various targets. This is pretty useful for a developer to make sure code compiles and passes checks for various architectures. Fixes: #6765 Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
13 lines
652 B
TOML
13 lines
652 B
TOML
[target.s390x-unknown-linux-gnu]
|
|
pre-build = ["dpkg --add-architecture s390x && apt-get update && apt-get install -y libssl-dev:s390x"]
|
|
|
|
[target.aarch64-unknown-linux-musl]
|
|
pre-build = ["dpkg --add-architecture arm64 && apt-get update && apt-get install -y libssl-dev:arm64"]
|
|
|
|
[target.x86-64-unknown-linux-musl]
|
|
pre-build = ["dpkg --add-architecture amd64 && apt-get update && apt-get install -y libssl-dev:amd64"]
|
|
|
|
# Powerpc compile seems to be broken, due to `ring` crate not being supported on powerpc.
|
|
[target.powerpc64le-unknown-linux-gnu]
|
|
pre-build = ["dpkg --add-architecture ppc64le && apt-get update && apt-get install -y libssl-dev:ppc64le"]
|