Skip to content

Commit

Permalink
Add chipyard docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mczyz-antmicro committed Jan 24, 2024
1 parent faa4e8c commit cdd1124
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
# Chipyard setup

FROM ubuntu:22.04

SHELL ["/bin/bash", "-c"]

# Install dependencies for ubuntu-req.sh
RUN apt -qqy update && \
DEBIAN_FRONTEND=noninteractive apt install -qqy --no-install-recommends \
ca-certificates build-essential gcc g++ python3 git cmake autoconf bison flex help2man wget
RUN update-ca-certificates

WORKDIR /root
RUN apt -qqy update && \
DEBIAN_FRONTEND=noninteractive apt install -qqy --no-install-recommends \
ca-certificates curl build-essential git sudo pbzip2 kmod
RUN update-ca-certificates

# Install Chipyard and run ubuntu-req.sh to install necessary dependencies
# FIXME: Using a branch, because I updated the install-conda.sh script,
# which is no longer maintained. Fix this in the future.
RUN git clone https://github.com/antmicro/chipyard.git && \
cd chipyard && \
git checkout mczyz/deps

RUN ./chipyard/.github/scripts/install-conda.sh
# RUN source ~/.bashrc
# RUN bash
RUN echo "shell is "$0
RUN ["/bin/bash", "--login", "-c", "conda activate base"]
RUN ["/bin/bash", "--login", "-c", "cd chipyard && ./build-setup.sh riscv-tools -s 6 -s 7 -s 8 -s 9"]
RUN ["/bin/bash", "--login", "-c", "cd chipyard && source ./env.sh"]

ENTRYPOINT ["chipyard/scripts/entrypoint.sh"]

0 comments on commit cdd1124

Please sign in to comment.