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 Icestorm 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
NextPnR Dockerfile
The dockerfile are available on the blog github here and under.
To install docker check the “get Docker” page.
FROM icestorm:latest
RUN git clone https://github.com/YosysHQ/nextpnr nextpnr
RUN cd nextpnr; \
git submodule init && git submodule update; \
cmake . -DARCH=ice40 -DCMAKE_INSTALL_PREFIX=/usr/local; \
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 a “nextpnr:latest” image (no version give the “latest” version by default):
docker build -t nextpnr .