First Step Dockerfile

This commit is contained in:
Paul Nehlich
2023-12-19 17:31:54 +01:00
parent 23c0f7bcd0
commit 6ad59529c8

37
Dockerfile Normal file
View File

@ -0,0 +1,37 @@
FROM docker.io/debian:trixie-slim
LABEL Description="Build environment"
SHELL ["/bin/bash", "-c"]
RUN apt-get update && apt-get -y --no-install-recommends install \
build-essential \
gdb-arm-none-eabi \
cmake \
gdb \
wget \
git \
rustup \
# Let us add some heavy dependency
RUN cd ${HOME} && \
cargo update \
rustup toolchain install nightly \
rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu \
rustup override set default nightly \
cargo build -Z build-std
# Prepare Bootloader
RUN git clone https://github.com/Xilinx/embeddedsw/ \
cd lib/sw_apps/zynq_fsbl/src/ \
make BOARD=zed CFLAGS=-DFSBL_DEBUG_INFO
# RUN?
# mkdir build_cli
# cd build_cli
# cmake -DCMAKE_TOOLCHAIN_FILE=../bsp_z7/cmake/arm-none-eabi.toolchain ..
# make -j 4