trezor-mcu/Dockerfile

24 lines
692 B
Docker
Raw Normal View History

2014-06-18 15:31:40 -07:00
# initialize from the image
FROM ubuntu:14.04
# add and update package repositories
2014-06-19 10:01:41 -07:00
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A3421AFB && 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
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