13
13
# License for the specific language governing permissions and limitations
14
14
# under the License.
15
15
16
- FROM ubuntu:19.10 AS builder-base
16
+ FROM ubuntu:20.04 AS builder-base
17
17
# NOTE WE ARE NOT REMOVEING APT CACHE.
18
18
# This should only be used for temp build images that artifacts will be copied from
19
19
RUN apt-get update -qq && apt-get install -y -qq \
@@ -25,7 +25,7 @@ RUN apt-get update -qq && apt-get install -y -qq \
25
25
# ##############################################################################
26
26
FROM builder-base AS nuttx-tools
27
27
28
- RUN apt-get update -qq && apt-get install -y -qq \
28
+ RUN apt-get update -qq && DEBIAN_FRONTEND= "noninteractive" apt-get install -y -qq \
29
29
flex \
30
30
bison \
31
31
gperf \
@@ -105,10 +105,25 @@ RUN mkdir xtensa-esp32-elf-gcc && \
105
105
curl -s -L "https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar.xz" \
106
106
| tar -C xtensa-esp32-elf-gcc --strip-components 1 -xJ
107
107
108
- RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends \
109
- git bison gperf python python-pip python-setuptools make cmake ninja-build ccache libffi-dev libssl-dev libusb-1.0
108
+ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -qq --no-install-recommends \
109
+ git \
110
+ bison \
111
+ gperf \
112
+ python3 \
113
+ python-is-python3 \
114
+ python3-pip \
115
+ python3-setuptools \
116
+ make \
117
+ cmake \
118
+ ninja-build \
119
+ ccache \
120
+ libffi-dev \
121
+ libssl-dev \
122
+ libusb-1.0
123
+
110
124
RUN git clone --depth 1 --shallow-submodules --recursive https://github.com/espressif/esp-idf.git
111
125
# This is unfortunatly going to re-download some of the same toolchains, but will only be used in the context of esp-idf
126
+ RUN sed -i "s/^gdbgui.*/gdbgui==0.13.2.0/" esp-idf/requirements.txt
112
127
RUN bash -c "\
113
128
cd esp-idf && \
114
129
./install.sh"
@@ -133,8 +148,17 @@ RUN cp /tools/esp-idf/examples/get-started/hello_world/build/partition_table/par
133
148
# Build image for tool required by Renesas builds
134
149
# ##############################################################################
135
150
FROM nuttx-toolchain-base AS nuttx-toolchain-renesas
136
- # Build Renesas RX GCC toolchain
137
- RUN apt-get install -y -qq build-essential flex bison texinfo libncurses5-dev m4 make g++ wget
151
+ # Build Renesas RX GCC toolchain
152
+ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -qq \
153
+ flex \
154
+ bison \
155
+ texinfo \
156
+ libncurses5-dev \
157
+ m4 \
158
+ make \
159
+ gcc \
160
+ g++ \
161
+ wget
138
162
139
163
# Download toolchain source code
140
164
RUN mkdir -p /tools/renesas-tools/source/binutils && \
@@ -159,6 +183,7 @@ ENV PATH="/tools/renesas-toolchain/rx-elf-gcc/bin:$PATH"
159
183
RUN cd renesas-tools/source/gcc && \
160
184
chmod +x ./contrib/download_prerequisites ./configure ./move-if-change ./libgcc/mkheader.sh && \
161
185
./contrib/download_prerequisites && \
186
+ sed -i '1s/^/@documentencoding ISO-8859-1\n /' ./gcc/doc/gcc.texi && \
162
187
sed -i 's/@tex/\n &/g' ./gcc/doc/gcc.texi && sed -i 's/@end tex/\n &/g' ./gcc/doc/gcc.texi && \
163
188
mkdir -p /tools/renesas-tools/build/gcc && cd /tools/renesas-tools/build/gcc && \
164
189
/tools/renesas-tools/source/gcc/configure --target=rx-elf --prefix=/tools/renesas-toolchain/rx-elf-gcc \
@@ -181,12 +206,12 @@ RUN cd /tools/renesas-tools/build/gcc && \
181
206
# Final Docker image used for running CI system. This includes all toolchains
182
207
# supported by the CI system.
183
208
# ##############################################################################
184
- FROM ubuntu:19.10
209
+ FROM ubuntu:20.04
185
210
LABEL maintainer=
"[email protected] "
186
211
187
212
RUN dpkg --add-architecture i386
188
213
# This is used for the final images so make sure to not store apt cache
189
- RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends \
214
+ RUN apt-get update -qq && DEBIAN_FRONTEND= "noninteractive" apt-get install -y -qq --no-install-recommends \
190
215
git \
191
216
build-essential \
192
217
gcc \
@@ -208,6 +233,7 @@ RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends \
208
233
xxd \
209
234
unzip \
210
235
python3 \
236
+ python-is-python3 \
211
237
python3-pip \
212
238
ccache \
213
239
&& rm -rf /var/lib/apt/lists/*
0 commit comments