83 Star 386 Fork 96

GVPXiangShan/XiangShan

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
#***************************************************************************************
# Copyright (c) 2025 Beijing Institute of Open Source Chip (BOSC)
#
# XiangShan is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
#
# See the Mulan PSL v2 for more details.
#***************************************************************************************
FROM ghcr.io/openxiangshan/xs-env:latest
# override ENTRYPOINT in verilator image
ENTRYPOINT [ "/bin/bash" ]
ENV VERILATOR=/usr/local/bin/verilator-wrap.sh
# explict set LC_ALL to C.UTF-8
ENV LC_ALL=C.UTF-8
#
# Mill
#
COPY .mill-version /tmp
RUN cd /tmp && mill -i --version && rm -rf .mill-version out
#
# XiangShan workspace
#
WORKDIR /work
VOLUME /work/out
VOLUME /work/build
# disable git safe.directory check
RUN git config --global --add safe.directory '*'
#
# download dependencies
#
RUN --mount=type=bind,source=.,target=/work,readonly \
--mount=type=tmpfs,destination=/tmp/.mill-out,rw <<EOF
make deps MILL_OUTPUT_DIR=/tmp/.mill-out
EOF
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Scala
1
https://gitee.com/OpenXiangShan/XiangShan.git
git@gitee.com:OpenXiangShan/XiangShan.git
OpenXiangShan
XiangShan
XiangShan
master

搜索帮助