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

Compile command reference #1

Open
DingliZhang opened this issue Jun 26, 2023 · 0 comments
Open

Compile command reference #1

DingliZhang opened this issue Jun 26, 2023 · 0 comments

Comments

@DingliZhang
Copy link

Zero VM

Swicth to the branch and excute autogen.sh

$ git checkout riscv-port-dev-zero
$ bash common/autoconf/autogen.sh

Configure and build

$ rm -rf build/linux-riscv64-normal-zero-release
$ export RISCV_PATH=<path-to-toolchain>

$ CC=$RISCV_PATH/bin/riscv64-unknown-linux-gnu-gcc \
CXX=$RISCV_PATH/bin/riscv64-unknown-linux-gnu-g++ \
bash configure \
--with-sysroot=$RISCV_PATH/sysroot \
--openjdk-target=riscv64-unknown-linux-gnu \
--with-boot-jdk=/home/zhangdingli/jdk-bin/java-se-8u43-ri \
--with-jvm-variants=zero \
--with-debug-level=release \
--with-native-debug-symbols=none \
--x-includes=$RISCV_PATH/sysroot/usr/include/X11/extension \
--x-libraries=$RISCV_PATH/sysroot/usr/lib \
--with-cups=$RISCV_PATH/sysroot/usr/include/cups \
--with-freetype-include=$RISCV_PATH/sysroot/usr/include/freetype2 \
--with-freetype-lib=$RISCV_PATH/sysroot/usr/lib

$ make CONF=linux-riscv64-normal-zero-release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant