Skip to content

Commit

Permalink
update docker image for Travis CI with "10-2020-q4-major" toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
aegean-odyssey committed Jan 21, 2021
1 parent fcadd48 commit 5b5d27e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .travis_dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,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

# arm "bare metal" cross compiler and libraries
RUN apt-get install --no-install-recommends --yes \
make 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 local bin directory into the search path
# 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

0 comments on commit 5b5d27e

Please sign in to comment.