Skip to content

Commit

Permalink
test for sdk pr and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Fly0307 committed Mar 8, 2024
1 parent e408f05 commit 5c7f847
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ For oe versions greater than 23, you can access the source code after [Run openE
### Build OpenSBI (with Penglai supports)
**For openEuler version $\lt$ 23:**

*If you want to use opensbi 0.9 or 1.0, you need to use the previous version of the penglai-enclave-driver, the corresponding commit is [bb5021cd9f76d033d6e174b2b96bbc4503766385](https://github.com/Penglai-Enclave/Penglai-Enclave-sPMP/tree/bb5021cd9f76d033d6e174b2b96bbc4503766385). And you can use the latest penglai-enclave-driver to support opensbi-1.2.*

When compiling opensbi-0.9/1.0, you can use the toolchain `CROSS_COMPILE=/home/penglai/toolchain-720/bin/riscv64-unkown-linux-gnu-`. For opensbi-1.2, you can use `CROSS_COMPILE=riscv64-unknown-linux-gnu-`.


Expand Down
15 changes: 1 addition & 14 deletions run_openeuler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,7 @@ while getopts ":k:o:" opt; do
esac
done

if (($kernel_version == 2003))
then
imagepath=openEuler-2003-qemu-riscv64.qcow2
elif (($kernel_version == 2303))
then
imagepath=openEuler-2303-qemu-riscv64.qcow2
elif (($kernel_version == 2309))
then
imagepath=openEuler-2309-qemu-riscv64.qcow2
else
echo "Invalid kernel version: $kernel_version" >&2
print_usage
exit 1
fi
imagepath=openEuler-$kernel_version-qemu-riscv64.qcow2

if [ $(echo "$opensbi_version == 0.9" | bc -l) -eq 1 ]
then
Expand Down
2 changes: 1 addition & 1 deletion sdk

0 comments on commit 5c7f847

Please sign in to comment.