diff --git a/src/tools/kata-ctl/Cross.toml b/src/tools/kata-ctl/Cross.toml deleted file mode 100644 index 88f18e96e5..0000000000 --- a/src/tools/kata-ctl/Cross.toml +++ /dev/null @@ -1,12 +0,0 @@ -[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"] diff --git a/src/tools/kata-ctl/README.md b/src/tools/kata-ctl/README.md index 4bc7c1ca51..0041454d8d 100644 --- a/src/tools/kata-ctl/README.md +++ b/src/tools/kata-ctl/README.md @@ -53,37 +53,6 @@ For a usage statement, run: $ kata-ctl --help ``` -## Cross-builds - -For developers that want to build and test the `kata-ctl` tool on various architectures, -the makefile included does have support for that. This would however, require installing -the cross compile toolchain for the target architecture on the host along with required libraries. - -[Cross](https://github.com/cross-rs/cross) is an open source tool that offers zero setup -cross compile and requires no changes to the system installation for cross-compiling -rust binaries. It makes use of docker containers for cross-compilation. - -You can install cross with: -``` -cargo install -f cross -``` - -`cross` relies on `docker` or `podman`. For dependencies take a look at: https://github.com/cross-rs/cross#dependencies - -There is an included `cross` configuration file [Cross.yaml](./Cross.toml) that can be used -to compile `kata-ctl` for various targets. This configuration helps install required -dependencies inside a docker container. - -For example, to compile for target `s390x-unknown-linux-gnu` included in `Cross.yaml` simple run: -``` -cross build --target=s390x-unknown-linux-gnu -``` - -You may also need to add the target on your host system prior to the above step as: -``` -rustup target add s390x-unknown-linux-gnu -``` - ## Documentation for included tools: | Component | Description | | [`log-parser`](src/log_parser) | Tool that aid in analyzing logs from the kata runtime. |