docker: update Dockerfile for xtensa-esp32-elf-ld
Этот коммит содержится в:
родитель
92150bd1c5
коммит
b7b7713526
1 изменённых файлов: 11 добавлений и 1 удалений
12
Dockerfile
12
Dockerfile
|
@ -15,8 +15,18 @@ FROM tinygo-llvm AS tinygo-llvm-build
|
|||
RUN cd /tinygo/ && \
|
||||
make llvm-build
|
||||
|
||||
# tinygo-xtensa stage installs tools needed for ESP32
|
||||
FROM tinygo-llvm-build AS tinygo-xtensa
|
||||
|
||||
ARG xtensa_version="1.22.0-80-g6c4433a-5.2.0"
|
||||
RUN cd /tmp/ && \
|
||||
wget -q https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-${xtensa_version}.tar.gz && \
|
||||
tar xzf xtensa-esp32-elf-linux64-${xtensa_version}.tar.gz && \
|
||||
cp ./xtensa-esp32-elf/bin/xtensa-esp32-elf-ld /usr/local/bin/ && \
|
||||
rm -rf /tmp/xtensa*
|
||||
|
||||
# tinygo-compiler stage builds the compiler itself
|
||||
FROM tinygo-llvm-build AS tinygo-compiler
|
||||
FROM tinygo-xtensa AS tinygo-compiler
|
||||
|
||||
COPY . /tinygo
|
||||
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче