-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving to OpenSBI, deprecate BBL (riscv-pk), and more (#220)
* Moving to OpenSBI, deprecate BBL (riscv-pk) * Bump latest riscv-gnu-toolchain (2021.01) * Bump buildroot (2020.11) * Remove all newly-introduced compiler errors * Test and fix RV32 (ilp32d/rv32gc) dtb was not aligned, which results in system hang at boot. align dtb in both bootrom and QEMU. * Better scripting for RV32 (always use fast-setup.sh) * Buildroot configs for the new toolchain (glibc) * Linux config mcmodel to medany (to be consistent) * CI changes for the latest toolchain * CI changes for RV32 test * Remove unused patches * Switch CI from Travis to CircleCI (Travis is no longer free for OSS) Issues resolved: - #212 - #195 - #127 - #147 - #148 - keystone-enclave/keystone-sdk#48 - keystone-enclave/keystone-runtime#46
- Loading branch information
Showing
30 changed files
with
323 additions
and
348 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,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 |
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,3 +1,4 @@ | ||
05211edea5a47ebaf906ef4bed2c9609a93e8c6ad5e45f8c87678eabbfd424e7 1.0.tar.gz | ||
bdc9e3ec47ac461ecc7865609fda6b820439c36130e9da9275af010d9f4fe4bc 2.0.tar.gz | ||
e73fa1191ce97be2531401d4628384c321c45ca5e4c83756e8415f2cc31a0b18 rv32gc.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 |
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ SECTIONS | |
*(.reset) | ||
*(*) | ||
} | ||
. = ALIGN(4); | ||
PROVIDE( _dtb = . ); | ||
} | ||
|
||
|
Submodule buildroot
updated
7189 files
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.