Skip to content

Commit 64557e8

Browse files
committed
ESP-IDF v4.0
1 parent ca11cec commit 64557e8

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

Dockerfile

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@ FROM debian:buster-slim
44
# Toolchain Version Config
55
# -------------------------------------------------------------------
66

7-
# Espressif toolchain
8-
ARG ESP_VERSION="1.22.0-80-g6c4433a-5.2.0"
9-
107
# esp-idf framework
11-
ARG IDF_VERSION="v3.3.2"
8+
ARG IDF_VERSION="v4.0"
129

1310
# llvm-xtensa (xtensa_release_9.0.1)
1411
ARG LLVM_VERSION="654ba115e55638acc60a8dacf8b1b8d8468cc4f4"
@@ -23,7 +20,6 @@ ARG RUSTC_VERSION="672b35ef0d38d3cd3b0d77eb15e5e58d9f4efec6"
2320
ARG TOOLCHAIN="/home/esp32-toolchain"
2421

2522
ARG ESP_BASE="${TOOLCHAIN}/esp"
26-
ENV ESP_PATH "${ESP_BASE}/esp-toolchain"
2723
ENV IDF_PATH "${ESP_BASE}/esp-idf"
2824

2925
ARG LLVM_BASE="${TOOLCHAIN}/llvm"
@@ -35,7 +31,7 @@ ARG RUSTC_BASE="${TOOLCHAIN}/rustc"
3531
ARG RUSTC_PATH="${RUSTC_BASE}/rust_xtensa"
3632
ARG RUSTC_BUILD_PATH="${RUSTC_BASE}/rust_build"
3733

38-
ENV PATH "/root/.cargo/bin:${ESP_PATH}/bin:${PATH}"
34+
ENV PATH "/root/.cargo/bin:${PATH}"
3935

4036
# -------------------------------------------------------------------
4137
# Install expected depdendencies
@@ -53,29 +49,16 @@ RUN apt-get update \
5349
gperf \
5450
libncurses-dev \
5551
libssl-dev \
52+
libusb-1.0 \
5653
make \
5754
ninja-build \
5855
pkg-config \
5956
python \
6057
python-pip \
58+
python-virtualenv \
6159
wget \
6260
&& rm -rf /var/lib/apt/lists/*
6361

64-
# -------------------------------------------------------------------
65-
# Setup esp32 toolchain
66-
# -------------------------------------------------------------------
67-
68-
WORKDIR "${ESP_BASE}"
69-
RUN curl \
70-
--proto '=https' \
71-
--tlsv1.2 \
72-
-sSf \
73-
-o "${ESP_PATH}.tar.gz" \
74-
"https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-${ESP_VERSION}.tar.gz" \
75-
&& mkdir "${ESP_PATH}" \
76-
&& tar -xzf "${ESP_PATH}.tar.gz" -C "${ESP_PATH}" --strip-components 1 \
77-
&& rm -rf "${ESP_PATH}.tar.gz"
78-
7962
# -------------------------------------------------------------------
8063
# Setup esp-idf
8164
# -------------------------------------------------------------------
@@ -84,7 +67,8 @@ WORKDIR "${ESP_BASE}"
8467
RUN git clone \
8568
--recursive --single-branch -b "${IDF_VERSION}" \
8669
https://github.com/espressif/esp-idf.git \
87-
&& pip install --user -r "${IDF_PATH}/requirements.txt"
70+
&& cd ${IDF_PATH} \
71+
&& ./install.sh
8872

8973
# -------------------------------------------------------------------
9074
# Build llvm-xtensa

0 commit comments

Comments
 (0)