You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN python3 -m pip install git+https://github.com/riscv/riscof
10
-
11
-
# set up the timezone
12
-
ENV TZ=Asia/Taipei
13
-
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
14
-
15
-
# when using apt install gcc-riscv64-unknown-elf, this will cause "unsupported ISA subset 'z'" during compilation
16
-
# thus, we are building from scratch, following the version here -> https://github.com/sysprog21/rv32emu/blob/master/.ci/riscv-toolchain-install.sh
17
-
# for x86, we can optimize this part and take the nightly build directly, but not for aarch64
# the above commands are modified to match the current build flow as indicated in the Github CI -> https://github.com/riscv/sail-riscv/blob/master/.github/workflows/compile.yml
33
-
WORKDIR /home/root/
34
-
RUN apt install -y opam zlib1g-dev pkg-config libgmp-dev z3 device-tree-compiler
35
-
RUN opam init --disable-sandboxing -y
36
-
RUN opam install -y sail
37
-
RUN git clone https://github.com/riscv/sail-riscv.git
38
-
# based on this commit https://github.com/sysprog21/rv32emu/commit/01b00b6f175f57ef39ffd1f4fa6a611891e36df3#diff-3b436c5e32c40ecca4095bdacc1fb69c0759096f86e029238ce34bbe73c6e68f
39
-
# we infer that the sail-riscv binary was taken from commit 9547a30bf84572c458476591b569a95f5232c1c7
RUN python3 -m pip install git+https://github.com/riscv/riscof
10
+
11
+
# set up the timezone
12
+
ENV TZ=Asia/Taipei
13
+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
14
+
15
+
# when using apt install gcc-riscv64-unknown-elf, this will cause "unsupported ISA subset 'z'" during compilation
16
+
# thus, we are building from scratch, following the version here -> https://github.com/sysprog21/rv32emu/blob/master/.ci/riscv-toolchain-install.sh
17
+
# for x86, we can optimize this part and take the nightly build directly, but not for aarch64
# the above commands are modified to match the current build flow as indicated in the Github CI -> https://github.com/riscv/sail-riscv/blob/master/.github/workflows/compile.yml
33
+
WORKDIR /home/root/
34
+
RUN apt install -y opam zlib1g-dev pkg-config libgmp-dev z3 device-tree-compiler
35
+
RUN opam init --disable-sandboxing -y
36
+
RUN opam switch create ocaml-base-compiler.4.13.1 # opam switch list-available
37
+
RUN opam search sail
38
+
# https://opam.ocaml.org/packages/sail/sail.0.16/
39
+
RUN opam install -y sail.0.16 # latest version 0.17.x will cause complication issues for sail-riscv on commit 9547a3
40
+
RUN git clone https://github.com/riscv/sail-riscv.git
41
+
# based on this commit https://github.com/sysprog21/rv32emu/commit/01b00b6f175f57ef39ffd1f4fa6a611891e36df3#diff-3b436c5e32c40ecca4095bdacc1fb69c0759096f86e029238ce34bbe73c6e68f
42
+
# we infer that the sail-riscv binary was taken from commit 9547a30bf84572c458476591b569a95f5232c1c7
0 commit comments