diff options
author | sago35 <[email protected]> | 2021-12-29 22:16:38 +0900 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-12-30 15:50:43 +0100 |
commit | b7b77135268ebd03f28b9a67a7c9bc7f44717457 (patch) | |
tree | 464b32c2033aa89ab3d1888c4aea2810d4b5a4db /Dockerfile | |
parent | 92150bd1c57aa78f21d41c55eaf75c04d5cbe18e (diff) | |
download | tinygo-b7b77135268ebd03f28b9a67a7c9bc7f44717457.tar.gz tinygo-b7b77135268ebd03f28b9a67a7c9bc7f44717457.zip |
docker: update Dockerfile for xtensa-esp32-elf-ld
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile index e40f11c3f..e0f3525d6 100644 --- a/Dockerfile +++ b/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 |