-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
containers base/nuttx use PX4 setup script
- Loading branch information
Showing
4 changed files
with
80 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,40 +2,20 @@ | |
# PX4 NuttX development environment in Ubuntu 18.04 Bionic | ||
# | ||
|
||
FROM px4io/px4-dev-base-bionic:2020-06-20 | ||
FROM px4io/px4-dev-base-bionic:2020-06-23 | ||
LABEL maintainer="Daniel Agar <[email protected]>" | ||
|
||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \ | ||
autoconf \ | ||
automake \ | ||
bison \ | ||
build-essential \ | ||
bzip2 \ | ||
file \ | ||
flex \ | ||
genromfs \ | ||
gperf \ | ||
libncurses-dev \ | ||
libtool \ | ||
pkg-config \ | ||
uncrustify \ | ||
vim-common \ | ||
RUN cd /tmp \ | ||
&& wget https://raw.githubusercontent.com/PX4/Firmware/master/Tools/setup/ubuntu.sh \ | ||
&& wget https://raw.githubusercontent.com/PX4/Firmware/master/Tools/setup/requirements.txt \ | ||
&& bash ubuntu.sh --no-sim-tools \ | ||
&& apt-get -y autoremove \ | ||
&& apt-get clean autoclean \ | ||
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/* | ||
|
||
# GNU Arm Embedded Toolchain Version 9-2019-q4-major Released: November 06, 2019 | ||
RUN mkdir -p /opt/gcc && cd /opt/gcc \ | ||
&& wget -qO- "https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2" | tar jx --strip 1 \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
&& rm -rf /opt/gcc/share/doc | ||
|
||
ENV PATH="$PATH:/opt/gcc/bin" | ||
|
||
# manual ccache setup for arm-none-eabi-g++/arm-none-eabi-gcc | ||
RUN ln -s /usr/bin/ccache /usr/lib/ccache/arm-none-eabi-g++ \ | ||
&& ln -s /usr/bin/ccache /usr/lib/ccache/arm-none-eabi-gcc | ||
|
||
# nuttx tools | ||
RUN git clone --depth 1 https://bitbucket.org/nuttx/tools.git /tmp/tools \ | ||
&& cd /tmp/tools/kconfig-frontends \ | ||
|
@@ -47,3 +27,12 @@ RUN git clone --depth 1 https://bitbucket.org/nuttx/tools.git /tmp/tools \ | |
RUN git clone --recursive https://github.com/google/bloaty.git /tmp/bloaty \ | ||
&& cd /tmp/bloaty && cmake -GNinja . && ninja -j $(nproc) bloaty && cp bloaty /usr/local/bin/ \ | ||
&& rm -rf /tmp/* | ||
|
||
# cleanup | ||
RUN rm -rf \ | ||
/var/lib/apt/lists/* \ | ||
/tmp/* /var/tmp/* \ | ||
/root/.cache \ | ||
/root/.gradle \ | ||
/root/.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,40 +2,20 @@ | |
# PX4 NuttX development environment in Ubuntu 20.04 Focal | ||
# | ||
|
||
FROM px4io/px4-dev-base-focal:2020-06-20 | ||
FROM px4io/px4-dev-base-focal:2020-06-23 | ||
LABEL maintainer="Daniel Agar <[email protected]>" | ||
|
||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive apt-get -y --quiet --no-install-recommends install \ | ||
autoconf \ | ||
automake \ | ||
bison \ | ||
build-essential \ | ||
bzip2 \ | ||
file \ | ||
flex \ | ||
genromfs \ | ||
gperf \ | ||
libncurses-dev \ | ||
libtool \ | ||
pkg-config \ | ||
uncrustify \ | ||
vim-common \ | ||
RUN cd /tmp \ | ||
&& wget https://raw.githubusercontent.com/PX4/Firmware/master/Tools/setup/ubuntu.sh \ | ||
&& wget https://raw.githubusercontent.com/PX4/Firmware/master/Tools/setup/requirements.txt \ | ||
&& bash ubuntu.sh --no-sim-tools \ | ||
&& apt-get -y autoremove \ | ||
&& apt-get clean autoclean \ | ||
&& rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/* | ||
|
||
# GNU Arm Embedded Toolchain Version 9-2019-q4-major Released: November 06, 2019 | ||
RUN mkdir -p /opt/gcc && cd /opt/gcc \ | ||
&& wget -qO- "https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/9-2019q4/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2" | tar jx --strip 1 \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
&& rm -rf /opt/gcc/share/doc | ||
|
||
ENV PATH="$PATH:/opt/gcc/bin" | ||
|
||
# manual ccache setup for arm-none-eabi-g++/arm-none-eabi-gcc | ||
RUN ln -s /usr/bin/ccache /usr/lib/ccache/arm-none-eabi-g++ \ | ||
&& ln -s /usr/bin/ccache /usr/lib/ccache/arm-none-eabi-gcc | ||
|
||
# nuttx tools | ||
RUN git clone --depth 1 https://bitbucket.org/nuttx/tools.git /tmp/tools \ | ||
&& cd /tmp/tools/kconfig-frontends \ | ||
|
@@ -47,3 +27,12 @@ RUN git clone --depth 1 https://bitbucket.org/nuttx/tools.git /tmp/tools \ | |
RUN git clone --recursive https://github.com/google/bloaty.git /tmp/bloaty \ | ||
&& cd /tmp/bloaty && cmake -GNinja . && ninja -j $(nproc) bloaty && cp bloaty /usr/local/bin/ \ | ||
&& rm -rf /tmp/* | ||
|
||
# cleanup | ||
RUN rm -rf \ | ||
/var/lib/apt/lists/* \ | ||
/tmp/* /var/tmp/* \ | ||
/root/.cache \ | ||
/root/.gradle \ | ||
/root/.local | ||
|