forked from rodrigodzf/xc-bela-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (24 loc) · 943 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# NEEDS TO RUN WITH BELA CONNECTED TO THE HOST
FROM debian:bullseye
ENV DEBIAN_FRONTEND=noninteractive
ARG TARGETPLATFORM
ARG BUILDPLATFORM
RUN echo "running on $BUILDPLATFORM, building for $TARGETPLATFORM"
ENV BELA_ROOT=/sysroot/root/Bela
COPY scripts/build_settings ./
COPY scripts/build_packages.sh ./
RUN ./build_packages.sh && rm build_packages.sh
COPY scripts/build_env.sh ./
RUN ./build_env.sh && rm build_env.sh
COPY scripts/build_libs.sh ./
RUN ./build_libs.sh && rm build_libs.sh
COPY CustomMakefile/Bela/CustomMakefile* /tmp/
COPY scripts/build_libbelafull.sh ./
RUN ./build_libbelafull.sh && rm build_libbelafull.sh && rm /tmp/CustomMakefile*
COPY Toolchain.cmake ${BELA_ROOT}/
COPY CustomMakefile/Docker/CustomMakefileTop.in ${BELA_ROOT}/
COPY scripts/build_bela.sh ./
RUN ./build_bela.sh && rm build_bela.sh && rm build_settings
COPY basic/render.cpp ${BELA_ROOT}/projects/basic/
WORKDIR /sysroot/root/
CMD /bin/bash