Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test for sdk pr and update README #115

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading