From 23bae6ec9d7d7be680d8422385457aec462fe028 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 19 Jun 2014 00:31:40 +0200 Subject: [PATCH] add Dockerfile --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..cd75d0f61d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# initialize from the image + +FROM ubuntu:14.04 + +# add and update package repositories + +RUN echo "deb http://ppa.launchpad.net/terry.guo/gcc-arm-embedded/ubuntu trusty main" >> /etc/apt/sources.list && apt-get update + +# install build tools and dependencies + +RUN apt-get install -y build-essential git gcc-arm-none-eabi python + +# clone the source code + +RUN git clone https://github.com/libopencm3/libopencm3 && git clone https://github.com/trezor/trezor-mcu && cd trezor-mcu && git submodule update --init + +# build libopencm3 + +RUN cd libopencm3 && make + +# build the firmware + +RUN cd trezor-mcu && make && cd firmware && make