Skip to content

Commit

Permalink
Merge pull request #110 from keystone-enclave/setup-fixes
Browse files Browse the repository at this point in the history
Updated fast setup to new hosting for toolchains, corrected setup to …
  • Loading branch information
dayeol committed Aug 10, 2019
2 parents 6559db1 + 2504be3 commit 44acf9b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions docs/source/Getting-Started/QEMU-Setup-Repository.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Setup
Setup
----------------------------

In this stage, you will (1) install RISC-V toolchain, (2) checkout git submodules, and (3) Install
SDK.
You can either quickly setup everything (:ref:`QEMUSetupQuick`) or manually setup
You can either quickly setup everything (:ref:`QEMUSetupQuick`) or manually setup
(:ref:`QEMUSetupManual`).

.. _QEMUSetupQuick:
Expand All @@ -29,7 +29,7 @@ To keep environment variables, add following lines to your ``.bashrc``.
::

export RISCV=<path/to/keystone>/riscv
export PATH=$PATH:$RISCV/bin
export PATH=$PATH:$RISCV/bin
export KEYSTONE_SDK_DIR=<path/to/keystone>/sdk

You can also manually run ``source source.sh`` to set the environment variables.
Expand Down Expand Up @@ -59,7 +59,7 @@ See `riscv-gnu-toolchain <https://github.com/riscv/riscv-gnu-toolchain>`_ for de
::

cd riscv-gnu-toolchain
./configure --prefix=$(pwd)/riscv --enable-multilib
./configure --prefix=$(pwd)/../riscv
make; make linux

Install the Keystone SDK and prepare Eyrie runtime source code.
Expand All @@ -84,7 +84,7 @@ To keep environment variables, add following lines to your ``.bashrc``.
::

export RISCV=<path/to/keystone>/riscv
export PATH=$PATH:$RISCV/bin
export PATH=$PATH:$RISCV/bin
export KEYSTONE_SDK_DIR=<path/to/keystone>/sdk

You can also manually run ``source source.sh`` to set the environment variables.
You can also manually run ``source source.sh`` to set the environment variables.
2 changes: 1 addition & 1 deletion fast-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ else

export RISCV=$(pwd)/riscv
export PATH=$PATH:$RISCV/bin
wget https://github.com/keystone-enclave/firesim-riscv-tools-prebuilt/archive/${TOOL_VER}.tar.gz
wget https://keystone-enclave.eecs.berkeley.edu/files/${TOOL_VER}.tar.gz

# Check tool integrity
echo "Verifying prebuilt toolchain integrity..."
Expand Down
1 change: 1 addition & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ cd ..

# build tests in SDK
make -C sdk
export KEYSTONE_SDK_DIR=$(pwd)/sdk
./sdk/scripts/init.sh --runtime eyrie --force

0 comments on commit 44acf9b

Please sign in to comment.