Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
openeuler_risc-v_qemu_install [2022/02/28 09:37] – misaka00251 | openeuler_risc-v_qemu_install [2022/03/01 06:54] – [Others] misaka00251 | ||
---|---|---|---|
Line 119: | Line 119: | ||
'' | '' | ||
+ | |||
+ | ==== 公共 CI 机器上编译用户模式的 QEMU ==== | ||
+ | |||
+ | 这里我们可以使用清华源来加快 git clone 的速度,然后转到最新版的分支用于构建: | ||
+ | |||
+ | < | ||
+ | $ git clone https:// | ||
+ | $ cd qemu | ||
+ | $ git checkout stable-6.1 | ||
+ | $ ./configure --target-list=riscv64-softmmu, | ||
+ | $ make | ||
+ | $ make install | ||
+ | </ | ||
+ | |||
+ | 上面的 prefix 可以自己定义位置,如果自定义了位置的话下面的 '' | ||
+ | |||
+ | 在编译成功之后,记得在 '' | ||
+ | |||
+ | <file bashrc .bashrc> | ||
+ | export QEMU_HOME=/ | ||
+ | export PATH=$QEMU_HOME/ | ||
+ | </ | ||
+ | |||
+ | 随后 '' |