@@ -25,12 +25,15 @@ RUN apt-get update -qq && apt-get install -y -qq \
2525# ##############################################################################
2626FROM builder-base AS nuttx-tools
2727
28- RUN apt-get install -y -qq \
28+ RUN apt-get update -qq && apt-get install -y -qq \
2929 flex \
3030 bison \
3131 gperf \
3232 libncurses5-dev \
33- make
33+ make \
34+ cmake \
35+ g++ \
36+ git
3437
3538RUN mkdir /tools
3639WORKDIR /tools
@@ -49,6 +52,12 @@ RUN cd nuttx-tools \
4952 && cd genromfs \
5053 && make install PREFIX=/tools/genromfs
5154
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+
5261CMD [ "/bin/bash" ]
5362
5463# ##############################################################################
@@ -96,7 +105,7 @@ RUN mkdir xtensa-esp32-elf-gcc && \
96105 curl -s -L "https://dl.espressif.com/dl/xtensa-esp32-elf-gcc8_2_0-esp32-2019r1-rc2-linux-amd64.tar.xz" \
97106 | tar -C xtensa-esp32-elf-gcc --strip-components 1 -xJ
98107
99- RUN apt-get install -y -qq --no-install-recommends \
108+ RUN apt-get update -qq && apt-get install -y -qq --no-install-recommends \
100109 git bison gperf python python-pip python-setuptools make cmake ninja-build ccache libffi-dev libssl-dev libusb-1.0
101110RUN git clone --depth 1 --shallow-submodules --recursive https://github.com/espressif/esp-idf.git
102111# 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/
174183ENV PATH="/tools/genromfs/usr/bin:$PATH"
175184COPY --from=nuttx-tools /tools/kconfig-frontends/ kconfig-frontends/
176185ENV PATH="/tools/kconfig-frontends/bin:$PATH"
186+ COPY --from=nuttx-tools /tools/bloaty/ bloaty/
187+ ENV PATH="/tools/bloaty/bin:$PATH"
177188
178189# ARM toolchain
179190COPY --from=nuttx-toolchain-arm /tools/gcc-arm-none-eabi/ gcc-arm-none-eabi/
0 commit comments