1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

gcc-arm-none-eabi is not available in travis yet, install manually

This commit is contained in:
Pavol Rusnak 2015-08-05 17:05:24 +02:00
parent 90171e0aa6
commit f6820ad5f6
2 changed files with 8 additions and 13 deletions

View File

@ -1,19 +1,14 @@
sudo: false
language: c
addons:
apt:
packages:
- build-essential
- git
- gcc-arm-none-eabi
install:
- sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded -y
- sudo apt-get update
- sudo apt-get install -y build-essential git gcc-arm-none-eabi
- git clone https://github.com/libopencm3/libopencm3
script:
- cd libopencm3; make; cd ..
- make -C libopencm3
- TOOLCHAIN_DIR=libopencm3 make
- cd firmware; TOOLCHAIN_DIR=../libopencm3 make; cd ..
- cd bootloader; TOOLCHAIN_DIR=../libopencm3 make; cd ..
- cd demo; TOOLCHAIN_DIR=../libopencm3 make; cd ..
- TOOLCHAIN_DIR=../libopencm3 make -C firmware
- TOOLCHAIN_DIR=../libopencm3 make -C bootloader
- TOOLCHAIN_DIR=../libopencm3 make -C demo

View File

@ -1,5 +1,5 @@
TOP_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
TOOLCHAIN_DIR := $(TOP_DIR)/../libopencm3
TOOLCHAIN_DIR ?= $(TOP_DIR)/../libopencm3
PREFIX ?= arm-none-eabi-
CC = $(PREFIX)gcc