Skip to content

Instantly share code, notes, and snippets.

@polynomialspace
Created December 10, 2018 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save polynomialspace/61825cd49d9d573afc45e7f3fcb8e028 to your computer and use it in GitHub Desktop.
Save polynomialspace/61825cd49d9d573afc45e7f3fcb8e028 to your computer and use it in GitHub Desktop.
Docker file for migen
FROM ubuntu
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV DEBIAN_FRONTEND=noninteractive
#^ Really, ubuntu? (tzdata hanging)
RUN apt-get update && apt-get -y install bison build-essential clang cmake flex gawk git graphviz gtkwave libboost-all-dev libffi-dev libftdi-dev libreadline-dev python3 python3-dev python3-setuptools qt5-default tcl-dev xdot
RUN git clone https://github.com/cliffordwolf/icestorm && cd icestorm && make -j $(nproc) && make install
RUN git clone https://github.com/YosysHQ/nextpnr && cd nextpnr && cmake -DARCH=ice40 . && make -j $(nproc) && make install
RUN git clone https://github.com/YosysHQ/yosys && cd yosys && make -j $(nproc) && make install
RUN git clone https://github.com/m-labs/migen && cd migen && python3 setup.py build && python3 setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment