From c3f8cf021e991e3c50bdac6aea928d37e948b443 Mon Sep 17 00:00:00 2001 From: server Date: Tue, 16 Nov 2021 18:18:52 -0700 Subject: [PATCH] Stockfish Cartesi README --- README.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 00000000..6ad35cf0 --- /dev/null +++ b/README.md @@ -0,0 +1,49 @@ +# Stockfish for Cartesi RISC-V Machine Emulator +This branch contains patchlets to compile a RISC-V 64-bit build of +stockfish to run under the Cartesi machine emulator. + +# Setup Cartesi SDK +Build using Cartesi GCC. I just copied them from the docker build +and put them in my path (outside of the docker). + +``` +git clone --recursive https://github.com/cartesi/machine-emulator-sdk +``` + +You should be able +to run this command OK before proceeding: + +``` +riscv64-cartesi-linux-gnu-gcc +``` + +# Build +Note, the Makefile kludge disables things like "tests". + +Run: + +``` +make -j build ARCH=riscv64 COMP=riscv64-cartesi-linux-gnu-gcc COMPCXX=riscv64-cartesi-linux-gnu-g++ +``` + +# Run Stockfish in Emulator +TODO XXX + +# Upstream +See: + +* README-upstream.md + +* https://github.com/official-stockfish/Stockfish + +* https://stockfishchess.org/ + +# Cartesi +See: + +* https://cartesi.io/en/docs/intro/ + +* https://github.com/cartesi/machine-emulator/ + +# Copying +Same as upstream Stockfish, GPL v3.