Skip to content

Commit

Permalink
Merge pull request #216 from keystone-enclave/dev
Browse files Browse the repository at this point in the history
Release v1.0.0
  • Loading branch information
dayeol committed Mar 2, 2021
2 parents 21c7718 + 53047ea commit a1842a1
Show file tree
Hide file tree
Showing 45 changed files with 573 additions and 3,890 deletions.
75 changes: 75 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# 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

jobs:
build-and-test-rv64-qemu:
executor: setup-rv64gc
working_directory: /keystone
steps:
- checkout
- update-riscv-toolchain-path
- run:
name: "Build rv64 and run tests"
command: |
./fast-setup.sh
source ./source.sh
mkdir build64
cd build64
cmake /keystone
make -j$(nproc)
make run-tests
no_output_timeout: 120m
build-rv64-fu540:
executor: setup-rv64gc
working_directory: /keystone
steps:
- checkout
- update-riscv-toolchain-path
- run:
name: "Build rv64 sifive FU540"
command: |
./fast-setup.sh
source ./source.sh
mkdir build64-fu540
cd build64-fu540
cmake /keystone -DLINUX_SIFIVE=y -DSM_PLATFORM=sifive/fu540
make -j$(nproc)
build-and-test-rv32-qemu:
executor: setup-rv32gc
working_directory: /keystone
steps:
- checkout
- update-riscv-toolchain-path
- run:
name: "Build rv32 and run tests"
command: |
BITS=32 ./fast-setup.sh
source ./source.sh
mkdir build32
cd build32
cmake /keystone -DRISCV32=y
make -j$(nproc)
make run-tests
no_output_timeout: 120m

workflows:
build-and-test:
jobs:
- build-and-test-rv64-qemu
- build-rv64-fu540
- build-and-test-rv32-qemu
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "riscv-gnu-toolchain"]
path = riscv-gnu-toolchain
url = https://github.com/riscv/riscv-gnu-toolchain
[submodule "riscv-pk"]
path = riscv-pk
url = https://github.com/keystone-enclave/riscv-pk
[submodule "sdk"]
path = sdk
url = https://github.com/keystone-enclave/keystone-sdk
Expand All @@ -19,3 +16,6 @@
[submodule "qemu"]
path = qemu
url = https://github.com/qemu/qemu
[submodule "sm"]
path = sm
url = https://github.com/keystone-enclave/sm
6 changes: 4 additions & 2 deletions .prebuilt_tools_shasums
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
05211edea5a47ebaf906ef4bed2c9609a93e8c6ad5e45f8c87678eabbfd424e7 1.0.tar.gz
bdc9e3ec47ac461ecc7865609fda6b820439c36130e9da9275af010d9f4fe4bc 2.0.tar.gz
ad8c0e3357579ae8b9c6f8adb76aae5ac9155134304e11e429b81111283a4718 riscv-toolchain-ilp32d-rv32gc-2021.01.xenial.7z
ed41a452ba736d40de73b847777ad9cedd54e528f5d8930c44a6eb937e4d36d9 riscv-toolchain-lp64d-rv64gc-2021.01.xenial.7z
7e232c2030cc8ab8dab169a4e9dac1cc75c41ea1da8cbe1a70ba416a6d6b971f riscv-toolchain-ilp32d-rv32gc-2021.01.bionic.7z
2c37fa700f5ecf7ab8c1e5aeddd018fc15e0c187721b769a1d1318ed58228685 riscv-toolchain-lp64d-rv64gc-2021.01.bionic.7z
105 changes: 0 additions & 105 deletions .travis.yml

This file was deleted.

0 comments on commit a1842a1

Please sign in to comment.