From f28aa95173471cc7c4c9463cb919e3ded4d35a9f Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 14 Sep 2020 20:37:11 +0000 Subject: [PATCH] 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 --- fpga-build/Dockerfile | 26 ++++++++++++++++++++++++++ fpga-build/Makefile | 1 + 2 files changed, 27 insertions(+) create mode 100644 fpga-build/Dockerfile create mode 100644 fpga-build/Makefile diff --git a/fpga-build/Dockerfile b/fpga-build/Dockerfile new file mode 100644 index 00000000..9253f73f --- /dev/null +++ b/fpga-build/Dockerfile @@ -0,0 +1,26 @@ +ARG USER +FROM $USER/debian-buster-build + +MAINTAINER Harald Welte + +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} diff --git a/fpga-build/Makefile b/fpga-build/Makefile new file mode 100644 index 00000000..8d0e10b4 --- /dev/null +++ b/fpga-build/Makefile @@ -0,0 +1 @@ +include ../make/Makefile