From f6820ad5f63e692cbf519e5b156b7d0ad28ff68b Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 5 Aug 2015 17:05:24 +0200 Subject: [PATCH] gcc-arm-none-eabi is not available in travis yet, install manually --- .travis.yml | 19 +++++++------------ Makefile.include | 2 +- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8db60b8fcb..06d332fd7a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile.include b/Makefile.include index af22f3f4bb..8505ffc865 100644 --- a/Makefile.include +++ b/Makefile.include @@ -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