-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
48 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,36 @@ | ||
# This image and the `mips-unknown-none` target were derived from `BadBoiLabs`'s | ||
# `cannon-rs` project. | ||
# | ||
# https://github.com/BadBoiLabs/Cannon-rs | ||
|
||
FROM --platform=linux/amd64 ubuntu:22.04 | ||
|
||
ENV SHELL=/bin/bash | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# todo: pin `nightly` version | ||
ENV RUST_VERSION nightly | ||
ENV RUST_VERSION=nightly | ||
|
||
RUN apt-get update && apt-get install --assume-yes --no-install-recommends \ | ||
ca-certificates \ | ||
build-essential \ | ||
curl \ | ||
g++-mips-linux-gnu \ | ||
libc6-dev-mips-cross \ | ||
binutils-mips-linux-gnu \ | ||
g++-mips64-linux-gnuabi64 \ | ||
libc6-dev-mips64-cross \ | ||
binutils-mips64-linux-gnuabi64 \ | ||
llvm \ | ||
clang \ | ||
make \ | ||
cmake \ | ||
git | ||
git | ||
|
||
# Install Rustup and Rust | ||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y --default-toolchain ${RUST_VERSION} --component rust-src | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
# Add the special cannon build target | ||
COPY ./mips-unknown-none.json . | ||
COPY ./mips64-unknown-none.json . | ||
|
||
# Set up the env vars to instruct rustc to use the correct compiler and linker | ||
# and to build correctly to support the Cannon processor | ||
ENV CC_mips_unknown_none=mips-linux-gnu-gcc \ | ||
CXX_mips_unknown_none=mips-linux-gnu-g++ \ | ||
CARGO_TARGET_MIPS_UNKNOWN_NONE_LINKER=mips-linux-gnu-gcc \ | ||
RUSTFLAGS="-Clink-arg=-e_start -C llvm-args=-mno-check-zero-division" \ | ||
CARGO_BUILD_TARGET="/mips-unknown-none.json" \ | ||
ENV CC_mips64_unknown_none=mips64-linux-gnuabi64-gcc \ | ||
CXX_mips64_unknown_none=mips64-linux-gnuabi64-g++ \ | ||
CARGO_TARGET_MIPS64_UNKNOWN_NONE_LINKER=mips64-linux-gnuabi64-gcc \ | ||
RUSTFLAGS="-Clink-arg=-e_start -Cllvm-args=-mno-check-zero-division" \ | ||
CARGO_BUILD_TARGET="/mips64-unknown-none.json" \ | ||
RUSTUP_TOOLCHAIN=${RUST_VERSION} |
14 changes: 7 additions & 7 deletions
14
build/cannon/mips-unknown-none.json → build/cannon/mips64-unknown-none.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
crates/proof-sdk/std-fpvm/src/mips32/mod.rs → crates/proof-sdk/std-fpvm/src/mips64/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters