OpenXiangShan / XiangShan-doc

Documentation for XiangShan
https://xiangshan-doc.readthedocs.io
Creative Commons Attribution 4.0 International
329 stars 126 forks source link

编译链接kernel的BBL时报错 #85

Closed Haceker1166 closed 4 months ago

Haceker1166 commented 4 months ago

您好,我是根据https://xiangshan-doc.readthedocs.io/zh-cn/latest/tools/linux-kernel-for-xs/ 里的教程来编译链接kernel的BBL 但是报以下错误: image 查看了pk的makefile后发现此处有关于通过./config进行配置并生成BBL的makefile: image 发现生成的./build/Makefile中关于编译BBL时使用的CC为本地的gcc而非RV工具链: image 由此请问BBL的编译是需要在要在pk的makefile某处添加cross_compile的路径吗?或者说需要在RV环境下进行编译? 麻烦解答一下,谢谢!