2014-06-18 15:31:40 -07:00
|
|
|
# initialize from the image
|
|
|
|
|
|
|
|
FROM ubuntu:14.04
|
|
|
|
|
|
|
|
# add and update package repositories
|
|
|
|
|
2014-06-25 05:25:30 -07:00
|
|
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FE324A81C208C89497EFC6246D1D8367A3421AFB && echo "deb http://ppa.launchpad.net/terry.guo/gcc-arm-embedded/ubuntu trusty main" >> /etc/apt/sources.list && apt-get update
|
2014-06-18 15:31:40 -07:00
|
|
|
|
|
|
|
# install build tools and dependencies
|
|
|
|
|
2014-12-25 05:43:32 -08:00
|
|
|
ENV GCC_ARM_VERSION 4.9.3.2014q4-0trusty12
|
2014-06-22 15:37:24 -07:00
|
|
|
RUN apt-get install -y build-essential git gcc-arm-none-eabi=$GCC_ARM_VERSION python
|
2014-06-18 15:31:40 -07:00
|
|
|
|
|
|
|
# clone the source code
|
|
|
|
|
2014-12-27 07:33:44 -08:00
|
|
|
RUN git clone https://github.com/libopencm3/libopencm3
|
2014-06-18 15:31:40 -07:00
|
|
|
|
|
|
|
# build libopencm3
|
|
|
|
|
2014-12-25 05:43:32 -08:00
|
|
|
ENV LIBOPENCM3_GITREV 8a15cec6bf99f59065879a14895fb8af8a8a53e7
|
2014-06-22 15:37:24 -07:00
|
|
|
RUN cd libopencm3 && git checkout $LIBOPENCM3_GITREV && make
|