forked from aegean-odyssey/mpmd_marlin_1.1.x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis_dockerfile
19 lines (16 loc) · 906 Bytes
/
.travis_dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# start with debian buster
FROM debian:buster-slim
# ARM "bare metal" cross compiler and libraries
RUN apt-get update -q -q && apt-get upgrade --yes
RUN apt-get install --no-install-recommends --yes make bzip2
# skip these packages, as we now install the toolchain from a tarball
# gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
# GNU ARM Embedded Toolchain Downloads
# fetch the toolchain directly, unpack, and install (replaces /usr/local/bin)
ARG URL=https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4
ARG REL=gcc-arm-none-eabi-10-2020-q4-major
ADD $URL/$REL-x86_64-linux.tar.bz2 /usr/local/pkg.tbz2
RUN cd /usr/local && tar -xjf pkg.tbz2 && mv bin bin.hide && ln -s $REL/bin bin
# if it exists, put a ~/bin directory into the search path (on login)
RUN echo '[ -d "$HOME/bin" ] && export PATH="$HOME/bin:$PATH"' \
> /etc/profile.d/home_bin_search_path.sh