Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·43 lines (27 loc) · 1.71 KB
/
Copy pathDockerfile
File metadata and controls
executable file
·43 lines (27 loc) · 1.71 KB
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
37
38
39
40
41
42
43
FROM ubuntu:22.04
RUN apt-get update
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get install -y vim git make sed binutils diffutils python3 ninja-build build-essential curl bzip2 tar findutils unzip cmake
RUN apt-get install -y rsync libglib2.0-dev libpixman-1-dev wget cpio rsync bc libncurses5 libncurses5-dev flex bison openssl libssl-dev kmod python3-pip file pkg-config rsync u-boot-tools
RUN pip3 install Mako
# Install arch32 and aarch64-linux cross-compilers (Ubuntu Native)
RUN apt-get install -y gcc-arm-none-eabi gcc-aarch64-linux-gnu
# Download and install the aarch64-none-elf cross-compiler
RUN curl -Lo gcc-aarch64-none-eabi.tar.xz "https://developer.arm.com/-/media/Files/downloads/gnu/12.2.rel1/binrel/arm-gnu-toolchain-12.2.rel1-x86_64-aarch64-none-elf.tar.xz"
RUN mkdir -p /opt/gcc-aarch64-none-eabi
RUN tar xf gcc-aarch64-none-eabi.tar.xz --strip-components=1 -C /opt/gcc-aarch64-none-eabi
ENV PATH="/opt/gcc-aarch64-none-eabi/bin:${PATH}"
# Download and install the riscv32-unknown-elf- cross-compiler
RUN curl -Lo rv32.tar.xz "https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2025.01.20/riscv32-elf-ubuntu-22.04-gcc-nightly-2025.01.20-nightly.tar.xz"
RUN mkdir -p /opt/rv32
RUN tar xf rv32.tar.xz --strip-components=1 -C /opt/rv32
ENV PATH="/opt/rv32/bin:${PATH}"
ENV TERM=xterm-256color
RUN echo "PS1='\[\e[38;5;39m\]\w\[\e[0m\] \[\e[38;5;46;1m\]>\[\e[0m\] '" >> /root/.bashrc
RUN echo "source /root/.bashrc" >> /root/.profile
ENV HOME=/home
#RUN source /root/.bashrc
# Set the entry point to source .bashrc and start bash
CMD ["bash", "-c", "source /root/.bashrc && exec /bin/bash -il"]
#RUN source /root/.bashrc