@@ -25,12 +25,15 @@ 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 install -y -qq \
28
+ RUN apt-get update -qq && apt-get install -y -qq \
29
29
flex \
30
30
bison \
31
31
gperf \
32
32
libncurses5-dev \
33
- make
33
+ make \
34
+ cmake \
35
+ g++ \
36
+ git
34
37
35
38
RUN mkdir /tools
36
39
WORKDIR /tools
@@ -49,6 +52,12 @@ RUN cd nuttx-tools \
49
52
&& cd genromfs \
50
53
&& make install PREFIX=/tools/genromfs
51
54
55
+ RUN mkdir bloaty -p \
56
+ && git clone --depth 1 --branch v1.1 https://github.com/google/bloaty bloaty \
57
+ && cd bloaty \
58
+ && cmake -DCMAKE_SYSTEM_PREFIX_PATH=/tools/bloaty \
59
+ && make install
60
+
52
61
CMD [ "/bin/bash" ]
53
62
54
63
# ##############################################################################
@@ -96,7 +105,7 @@ RUN mkdir xtensa-esp32-elf-gcc && \
96
105
curl -s -L "https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar.xz" \
97
106
| tar -C xtensa-esp32-elf-gcc --strip-components 1 -xJ
98
107
99
- RUN apt-get install -y -qq --no-install-recommends \
108
+ RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends \
100
109
git bison gperf python python-pip python-setuptools make cmake ninja-build ccache libffi-dev libssl-dev libusb-1.0
101
110
RUN git clone --depth 1 --shallow-submodules --recursive https://github.com/espressif/esp-idf.git
102
111
# This is unfortunatly going to re-download some of the same toolchains, but will only be used in the context of esp-idf
@@ -174,6 +183,8 @@ COPY --from=nuttx-tools /tools/genromfs/ /tools/genromfs/
174
183
ENV PATH="/tools/genromfs/usr/bin:$PATH"
175
184
COPY --from=nuttx-tools /tools/kconfig-frontends/ kconfig-frontends/
176
185
ENV PATH="/tools/kconfig-frontends/bin:$PATH"
186
+ COPY --from=nuttx-tools /tools/bloaty/ bloaty/
187
+ ENV PATH="/tools/bloaty/bin:$PATH"
177
188
178
189
# ARM toolchain
179
190
COPY --from=nuttx-toolchain-arm /tools/gcc-arm-none-eabi/ gcc-arm-none-eabi/
0 commit comments