Today’s post is a short one, more like a ticket than a proper article. It’s part of a larger series that shows how to install Yosys and Nextpnr with docker, and how to use them for a full open-source project.
This article is a prerequisite for the bigger article : From HDL to FPGA Bitstream with Open Source toolchain
Icestorm in Dockerfile
The dockerfile are available on the blog github here and under.
To install docker check the “get Docker” page.
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Paris
RUN apt-get update; apt-get -y install curl git
RUN apt-get install -y build-essential clang bison flex gperf libfl2 \
libfl-dev libreadline-dev gawk tcl-dev libffi-dev \
graphviz xdot pkg-config python python3 libftdi-dev \
qt5-default python3-dev libboost-all-dev cmake libeigen3-dev
RUN git clone https://github.com/YosysHQ/icestorm.git icestorm
RUN cd icestorm; make -j$(nproc); make install
To build a docker image here is the template command:
docker build -t <image_name>:<version> .
The following command will create the docker image “icestorm:latest” (no version mean “latest” for docker):
docker build -t icestorm .