mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-31 18:40:56 +00:00
pin used revisions in Dockerfile
This commit is contained in:
parent
62ac6593f8
commit
f59500510a
14
Dockerfile
14
Dockerfile
@ -6,18 +6,24 @@ FROM ubuntu:14.04
|
||||
|
||||
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
|
||||
|
||||
# define used versions for pinning
|
||||
|
||||
ENV GCC_ARM_VERSION 4-8-2014q2-0trusty9
|
||||
ENV LIBOPENCM3_GITREV c01f9ee323d06b5325d77cda593a46dfe76ba341
|
||||
ENV TREZOR_MCU_GITREV e9fd756daad713525fa30bc3a08df4127548383f
|
||||
|
||||
# install build tools and dependencies
|
||||
|
||||
RUN apt-get install -y build-essential git gcc-arm-none-eabi python
|
||||
RUN apt-get install -y build-essential git gcc-arm-none-eabi=$GCC_ARM_VERSION 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
|
||||
RUN git clone https://github.com/libopencm3/libopencm3 && git clone https://github.com/trezor/trezor-mcu
|
||||
|
||||
# build libopencm3
|
||||
|
||||
RUN cd libopencm3 && make
|
||||
RUN cd libopencm3 && git checkout $LIBOPENCM3_GITREV && make
|
||||
|
||||
# build the firmware
|
||||
|
||||
RUN cd trezor-mcu && make && cd firmware && make
|
||||
RUN cd trezor-mcu && git checkout $TREZOR_MCU_GITREV && git submodule update --init && make && cd firmware && make
|
||||
|
Loading…
Reference in New Issue
Block a user