blob: 3fbb87721df69bfc6cbcd69add46a9ab6d93177c (
plain)
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
|
FROM ubuntu:22.04
ARG HTTP_PROXY
ARG HTTPS_PROXY
ENV http_proxy=${HTTP_PROXY}
ENV https_proxy=${HTTPS_PROXY}
RUN apt update && \
apt install -y --no-install-recommends \
sudo git wget python3 python3-pip scons xz-utils ca-certificates && \
pip3 install esptool && \
useradd -m dev && \
echo "dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER dev
WORKDIR /home/dev
RUN wget -q https://github.com/espressif/crosstool-NG/releases/download/esp-15.2.0_20251204/riscv32-esp-elf-15.2.0_20251204-x86_64-linux-gnu.tar.xz && \
sudo tar -xf riscv32-esp-elf-15.2.0_20251204-x86_64-linux-gnu.tar.xz -C /opt && \
rm riscv32-esp-elf-15.2.0_20251204-x86_64-linux-gnu.tar.xz
ENV PATH="/opt/riscv32-esp-elf/bin:${PATH}"
# 本 BSP 还没进上游。把含有 bsp/ESP/ESP32_C6 的 RT-Thread 树挂到 /home/dev/rt-thread 后再编译。
WORKDIR /home/dev/rt-thread/bsp/ESP/ESP32_C6
CMD ["scons", "--exec-path=/opt/riscv32-esp-elf/bin"]
|