| 1 |
FROM python:3 |
| 2 |
|
| 3 |
ARG GOWIN_VERSION |
| 4 |
ENV GOWIN_VERSION=${GOWIN_VERSION} |
| 5 |
|
| 6 |
WORKDIR /usr/src/gowin |
| 7 |
ENV GOWINHOME=/usr/src/gowin |
| 8 |
|
| 9 |
RUN curl -so gowin.tgz "https://cdn.gowinsemi.com.cn/Gowin_V${GOWIN_VERSION}_linux.tar.gz" && \ |
| 10 |
tar -xf gowin.tgz && \ |
| 11 |
rm gowin.tgz |
| 12 |
|
| 13 |
RUN apt-get update && \ |
| 14 |
apt-get install -y xxd && \ |
| 15 |
echo "B016: EB" | xxd -r -g 0 - ${GOWINHOME}/IDE/bin/gw_sh |
| 16 |
|
| 17 |
RUN pip install --no-cache-dir numpy fastcrc msgspec |
| 18 |
|
| 19 |
WORKDIR /usr/src/apicula |
| 20 |
|
| 21 |
CMD ["make"] |