From 8bd8dd6ce07fb8e247f651b3c61c94bb1f00895a Mon Sep 17 00:00:00 2001 From: Väinö Kauppila Date: Sun, 19 Apr 2026 00:33:08 +0300 Subject: starting files and example programs --- Containerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Containerfile (limited to 'Containerfile') diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..635f5b4 --- /dev/null +++ b/Containerfile @@ -0,0 +1,31 @@ +FROM debian:bookworm-slim + +ARG OSS_CAD_DATE=20260310 +ARG OSS_CAD_VERSION=2026-03-10 + +RUN apt-get update && apt-get install -y --no-install-recommends \ + curl \ + ca-certificates \ + libusb-1.0-0 \ + make \ + gcc \ + libc-dev \ + zlib1g-dev \ + python3 \ + python3-pip \ + && rm -rf /var/lib/apt/lists/* + +RUN curl -L \ + "https://github.com/YosysHQ/oss-cad-suite-build/releases/download/${OSS_CAD_VERSION}/oss-cad-suite-linux-x64-${OSS_CAD_DATE}.tgz" \ + | tar -xz -C /opt + +ENV PATH="/opt/oss-cad-suite/bin:$PATH" + +# pyGHDL ships ghdl-ls (verified from ghdl/ghdl setup.py) +# pyGHDL into system python (for ghdl-ls) +RUN pip3 install --break-system-packages pyGHDL + +# numpy/fastcrc into OSS CAD Suite's site-packages (used by apycula/gowin_pack) +RUN pip3 install --target=/opt/oss-cad-suite/lib/python3.11/site-packages numpy fastcrc + +WORKDIR /workspace -- cgit v1.3