This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates: * [all] Change to follow SM v1.0 SBI (OpenSBI) * [all] Fix compilation error for the new toolchain (RV32/RV64) * [CI] moved from TravisCI to CircleCI * [examples] Add return value checking for tests (`--retval` flag in the test runner) * [src/host] Host doesn't need to initialize Untrusted Memory Resolves #48 * [all] Fix formatting * [tests] Replace ValidMeasure test with deterministic measurement test Issues Resolved: #48
- Loading branch information
Showing
32 changed files
with
205 additions
and
162 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference | ||
version: 2.1 | ||
|
||
# prebuilt docker images with toolchain | ||
executors: | ||
setup-rv64gc: | ||
docker: | ||
- image: keystoneenclaveorg/keystone:init-rv64gc | ||
setup-rv32gc: | ||
docker: | ||
- image: keystoneenclaveorg/keystone:init-rv32gc | ||
|
||
|
||
commands: | ||
update-riscv-toolchain-path: | ||
steps: | ||
- run: echo 'export PATH=/keystone/riscv64/bin:/keystone/riscv32/bin:$PATH' >> $BASH_ENV | ||
setup-test: | ||
steps: | ||
- run: | ||
command: | | ||
/keystone/sdk/tests/scripts/setup_test.sh | ||
apt -y update | ||
apt -y install python3-pip clang-format | ||
pip3 install cpplint | ||
jobs: | ||
build-install-examples-test-format-64: | ||
executor: setup-rv64gc | ||
working_directory: /keystone/sdk | ||
steps: | ||
- checkout | ||
- update-riscv-toolchain-path | ||
- setup-test | ||
- run: | ||
name: "Build, install, build examples, test, and format check (rv64)" | ||
command: | | ||
mkdir build64 | ||
cd build64 | ||
export KEYSTONE_SDK_DIR=$(pwd) | ||
cmake .. | ||
make | ||
make install | ||
make examples | ||
make check | ||
make uninstall | ||
make format | ||
build-install-examples-32: | ||
executor: setup-rv32gc | ||
working_directory: /keystone/sdk | ||
steps: | ||
- checkout | ||
- update-riscv-toolchain-path | ||
- run: | ||
name: "Build, install, build examples (rv32)" | ||
command: | | ||
mkdir build32 | ||
cd build32 | ||
export KEYSTONE_SDK_DIR=$(pwd) | ||
cmake .. -DRISCV32=y | ||
make | ||
make install | ||
make examples | ||
workflows: | ||
build-and-test: | ||
jobs: | ||
- build-install-examples-test-format-64 | ||
- build-install-examples-32 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
14930352 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
12345 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
54321 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
11411 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
12345 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
13 |
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
Oops, something went wrong.