forked from Free60Project/libxenon
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtoolchain.dockerfile
More file actions
21 lines (16 loc) · 799 Bytes
/
Copy pathtoolchain.dockerfile
File metadata and controls
21 lines (16 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:latest
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update && apt install -y \
flex bison gcc-multilib libgmp3-dev libmpfr-dev libmpc-dev \
texinfo git-core build-essential wget file && \
apt -y clean autoclean autoremove && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
WORKDIR /build
COPY toolchain ./toolchain
WORKDIR /root
RUN echo "[+] Installing toolchain"
RUN (cd /build/toolchain && ./build-xenon-toolchain toolchain && cd / && rm -rf /build) || (cat build.log; exit 1)
RUN echo "[+] Setting environment variables"
RUN echo 'export DEVKITXENON="/usr/local/xenon"' >> /etc/profile.d/99-devkitxenon.sh
RUN echo 'export PATH="$PATH:$DEVKITXENON/bin:$DEVKITXENON/usr/bin"' >> /etc/profile.d/99-devkitxenon.sh