New fpga-build image for building iCE40 gateware + RISC-V firmware

this will be needed for building e1-tracer + icE1usb gateware+firmware
on our jenkins slaves.

Change-Id: I7c2072b9524a2038d71c0fac4f2023b92af26382
This commit is contained in:
Harald Welte 2020-09-14 20:37:11 +00:00 committed by Harald Welte
parent 078717ab2b
commit f28aa95173
2 changed files with 27 additions and 0 deletions

26
fpga-build/Dockerfile Normal file
View File

@ -0,0 +1,26 @@
ARG USER
FROM $USER/debian-buster-build
MAINTAINER Harald Welte <laforge@gnumonks.org>
ARG TOOLCHAIN_DATE=20200914
RUN wget --quiet https://github.com/open-tool-forge/fpga-toolchain/releases/download/nightly-$TOOLCHAIN_DATE/fpga-toolchain-linux_x86_64-nightly-$TOOLCHAIN_DATE.tar.gz
RUN tar -C /opt -xzf fpga-toolchain-linux_x86_64-nightly-$TOOLCHAIN_DATE.tar.gz && \
rm fpga-toolchain-linux_x86_64-nightly-$TOOLCHAIN_DATE.tar.gz
RUN wget --quiet https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/releases/download/v8.3.0-1.2/xpack-riscv-none-embed-gcc-8.3.0-1.2-linux-x64.tar.gz
RUN tar -C /opt -xzvf /xpack-riscv-none-embed-gcc-8.3.0-1.2-linux-x64.tar.gz && \
rm xpack-riscv-none-embed-gcc-8.3.0-1.2-linux-x64.tar.gz
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
wget && \
apt-get clean
RUN useradd -m osmocom
USER osmocom
WORKDIR /home/osmocom
ENV PATH=/opt/fpga-toolchain/bin:/opt/xpack-riscv-none-embed-gcc-8.3.0-1.2/bin:${PATH}

1
fpga-build/Makefile Normal file
View File

@ -0,0 +1 @@
include ../make/Makefile