forked from ROMEO/obsw
First Step Dockerfile
This commit is contained in:
37
Dockerfile
Normal file
37
Dockerfile
Normal 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
|
||||||
|
|
Reference in New Issue
Block a user