From 2d45a29200a82b5bcaca9a7e0130495e41ca45b2 Mon Sep 17 00:00:00 2001 From: Sylvain Bellemare Date: Sun, 13 Feb 2022 06:55:07 -0600 Subject: [PATCH] Document installation of cargo subcommand elf2sgxs --- docs/setup/prerequisites.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/setup/prerequisites.md b/docs/setup/prerequisites.md index 402f49bf740..f788545a299 100644 --- a/docs/setup/prerequisites.md +++ b/docs/setup/prerequisites.md @@ -135,6 +135,20 @@ Core: rustup target add x86_64-fortanix-unknown-sgx ``` +* (**OPTIONAL**) [oasis-core-tools]. + + Required to use the `cargo` subcommand `elf2sgxs` when building for SGX, to + convert ELF binaries to SGXS format. + + Download and install it with: + + ``` + cargo install oasis-core-tools \ + --git https://github.com/oasisprotocol/oasis-core \ + --force \ + --locked + ``` + * (**OPTIONAL**) [gofumpt] and [goimports]. Required if you plan to change any of the Go code in order for automated code @@ -247,6 +261,7 @@ where the code has been checked out. [jemalloc-hardcode-path]: https://github.com/dgraph-io/ristretto/blob/221ca9b2091d12e5d24aa5d7d56e49745fc175d8/z/calloc_jemalloc.go#L9-L13 +[oasis-core-tools]: https://github.com/oasisprotocol/oasis-core/tree/master/tools ## Using the Development Docker Image