Skip to content

Commit

Permalink
Merge pull request #115 from Fly0307/update-README
Browse files Browse the repository at this point in the history
test for sdk pr and update README
  • Loading branch information
fengerhu1 authored Mar 8, 2024
2 parents e408f05 + 1de1889 commit 2400a8c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ For example, download the OKL-5.10 in current directory, and compile with pengla
For oe versions greater than 23, you can access the source code after [Run openEuler with Penglai Supports](#run-openeuler-with-penglai-supports) and don't need to compile the image like in the previous step for version $\lt$ 23.

### Build OpenSBI (with Penglai supports)

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.

**For openEuler version $\lt$ 23:**

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 2400a8c

Please sign in to comment.