diff options
author | Harald Welte <laforge@gnumonks.org> | 2020-09-14 20:37:11 +0000 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-09-14 22:38:40 +0200 |
commit | f28aa95173471cc7c4c9463cb919e3ded4d35a9f (patch) | |
tree | 90297a65478ea9bb064f602e68f9792e53d3d343 | |
parent | 078717ab2b75b4663722d4b5e720712b316c0a81 (diff) |
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
-rw-r--r-- | fpga-build/Dockerfile | 26 | ||||
-rw-r--r-- | fpga-build/Makefile | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/fpga-build/Dockerfile b/fpga-build/Dockerfile new file mode 100644 index 0000000..9253f73 --- /dev/null +++ b/fpga-build/Dockerfile @@ -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} diff --git a/fpga-build/Makefile b/fpga-build/Makefile new file mode 100644 index 0000000..8d0e10b --- /dev/null +++ b/fpga-build/Makefile @@ -0,0 +1 @@ +include ../make/Makefile |