-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
faa4e8c
commit cdd1124
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
|