tools/ci: upgrade to the latest Xtensa ESP32 toolchains

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-03-17 05:37:56 +01:00 committed by Gustavo Henrique Nihei
parent 1d7383d4a1
commit f84f30fe17
2 changed files with 14 additions and 13 deletions

View File

@ -418,15 +418,16 @@ function xtensa-esp32-gcc-toolchain {
cd "${tools}" cd "${tools}"
case ${os} in case ${os} in
Darwin) Darwin)
wget --quiet https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_4_0-esp-2021r1-macos.tar.gz wget --quiet https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32-elf-12.2.0_20230208-x86_64-apple-darwin.tar.xz
tar xzf xtensa-esp32-elf-gcc8_4_0-esp-2021r1-macos.tar.gz xz -d xtensa-esp32-elf-12.2.0_20230208-x86_64-apple-darwin.tar.xz
rm xtensa-esp32-elf-gcc8_4_0-esp-2021r1-macos.tar.gz tar xf xtensa-esp32-elf-12.2.0_20230208-x86_64-apple-darwin.tar
rm xtensa-esp32-elf-12.2.0_20230208-x86_64-apple-darwin.tar
;; ;;
Linux) Linux)
wget --quiet https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_4_0-esp32-2021r1-linux-amd64.tar.xz wget --quiet https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz
xz -d xtensa-esp32-elf-gcc8_4_0-esp32-2021r1-linux-amd64.tar.xz xz -d xtensa-esp32-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz
tar xf xtensa-esp32-elf-gcc8_4_0-esp32-2021r1-linux-amd64.tar tar xf xtensa-esp32-elf-12.2.0_20230208-x86_64-linux-gnu.tar
rm xtensa-esp32-elf-gcc8_4_0-esp32-2021r1-linux-amd64.tar rm xtensa-esp32-elf-12.2.0_20230208-x86_64-linux-gnu.tar
;; ;;
esac esac
fi fi

View File

@ -189,16 +189,16 @@ RUN mkdir sparc-gaisler-elf-gcc && \
FROM nuttx-toolchain-base AS nuttx-toolchain-esp32 FROM nuttx-toolchain-base AS nuttx-toolchain-esp32
# Download the latest ESP32 GCC toolchain prebuilt by Espressif # Download the latest ESP32 GCC toolchain prebuilt by Espressif
RUN mkdir -p xtensa-esp32-elf-gcc && \ RUN mkdir -p xtensa-esp32-elf-gcc && \
curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-2021r1/xtensa-esp32-elf-gcc8_4_0-esp-2021r1-linux-amd64.tar.gz" \ curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz" \
| tar -C xtensa-esp32-elf-gcc --strip-components 1 -xz | tar -C xtensa-esp32-elf-gcc --strip-components 1 -xJ
RUN mkdir -p xtensa-esp32s2-elf-gcc && \ RUN mkdir -p xtensa-esp32s2-elf-gcc && \
curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-2021r1/xtensa-esp32s2-elf-gcc8_4_0-esp-2021r1-linux-amd64.tar.gz" \ curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32s2-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz" \
| tar -C xtensa-esp32s2-elf-gcc --strip-components 1 -xz | tar -C xtensa-esp32s2-elf-gcc --strip-components 1 -xJ
RUN mkdir -p xtensa-esp32s3-elf-gcc && \ RUN mkdir -p xtensa-esp32s3-elf-gcc && \
curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-2021r1/xtensa-esp32s3-elf-gcc8_4_0-esp-2021r1-linux-amd64.tar.gz" \ curl -s -L "https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/xtensa-esp32s3-elf-12.2.0_20230208-x86_64-linux-gnu.tar.xz" \
| tar -C xtensa-esp32s3-elf-gcc --strip-components 1 -xz | tar -C xtensa-esp32s3-elf-gcc --strip-components 1 -xJ
RUN echo "ESP Binaries: 2022/01/26" RUN echo "ESP Binaries: 2022/01/26"
RUN mkdir -p /tools/blobs && cd /tools/blobs \ RUN mkdir -p /tools/blobs && cd /tools/blobs \