Skip to content

Commit

Permalink
Add CircleCI support for automatically building firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
meriac committed Aug 20, 2018
1 parent c98a573 commit e5d7d04
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
jobs:
build:
docker:
- image: meriac/tfm-dev
user: build
steps:
- checkout
- run:
name: "Setup Environment Variables"
command: echo 'export PATH="$PATH:/usr/gcc-arm-none-eabi/bin"' >> $BASH_ENV
- run:
name: "Update submodules"
command: |
git submodule init
git submodule foreach --recursive 'git fetch --tags'
git submodule update --recursive
- run:
name: "Run Tests"
command: |
make compile
- store_artifacts:
path: build/install/outputs
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
url = https://github.com/meriac/trusted-firmware-m
[submodule "submodules/mbedtls"]
branch = mbedtls-2.6
shallow = true
path = submodules/mbedtls
url = https://github.com/ARMmbed/mbedtls.git
[submodule "submodules/CMSIS_5"]
branch = 5.2.0
path = submodules/CMSIS_5
shallow = true
url = https://github.com/ARM-software/CMSIS_5.git
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ IMAGE_TAG:="docker.io/meriac/tfm-dev"
run: docker-run

compile:
rm -rf build && mkdir -p build
rm -rf build
mkdir -p build
cd build && cmake ../submodules/trusted-firmware-m -G"Unix Makefiles" -DTARGET_PLATFORM=AN521 -DCOMPILER=GNUARM
cmake --build build -- install

Expand Down

0 comments on commit e5d7d04

Please sign in to comment.