This repository has been archived on 2024-06-02. You can view files and clone it, but cannot push or open issues or pull requests.
upsilon-docker/Dockerfile.hardware

27 lines
789 B
Docker

FROM debian:bookworm
ENV FPGA_FAM=xc7
ENV F4PGA_INSTALL_DIR=/home/user/f4pga
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y git wget python3 xz-utils bash verilator m4 \
&& adduser --quiet --disabled-password user
USER user:user
WORKDIR /home/user
COPY --chown=user:user f4pga/scripts/prepare_environment.sh /home/user
RUN sed -i 's/sudo/#sudo/g' ./prepare_environment.sh \
&& ./prepare_environment.sh \
&& rm ./prepare_environment.sh
COPY --chown=user:user litex/litex_setup.py /home/user
RUN mkdir /home/user/litex \
&& chmod +x litex_setup.py \
&& cd litex/ \
&& bash -c '\
source ~/f4pga/xc7/conda/etc/profile.d/conda.sh; \
conda run -n xc7 ../litex_setup.py --init --install --user --tag=2023.04' \
&& rm ../litex_setup.py