From def6cd1c61b176d3e10a2849a639cc96916a8c48 Mon Sep 17 00:00:00 2001 From: Gareth McMullin Date: Sun, 26 Jan 2014 07:41:35 +0800 Subject: [PATCH] Add libopencm3 as a submodule. --- .gitmodules | 3 +++ Makefile | 14 ++++++++++---- libopencm3 | 1 + 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 .gitmodules create mode 160000 libopencm3 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..c4a0df17 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libopencm3"] + path = libopencm3 + url = https://github.com/libopencm3/libopencm3.git diff --git a/Makefile b/Makefile index 5efaf5be..5029cdcb 100644 --- a/Makefile +++ b/Makefile @@ -14,11 +14,11 @@ else MAKEFLAGS += PRN=$(PRN) endif -.PHONY: all tests firmware bootloader docs +.PHONY: all tests firmware bootloader docs libopencm3 all: firmware bootloader tests -firmware: +firmware: libopencm3 @printf "BUILD src\n"; \ $(MAKE) -C src $(MAKEFLAGS) @@ -34,11 +34,17 @@ tests: fi; \ done +libopencm3: + @printf "BUILD libopencm3\n"; \ + $(MAKE) -C libopencm3 $(MAKEFLAGS) + clean: @printf "CLEAN src\n"; \ - $(MAKE) -C bootloader $(MAKEFLAGS) clean - @printf "CLEAN bootloader\n"; \ $(MAKE) -C src $(MAKEFLAGS) clean + @printf "CLEAN bootloader\n"; \ + $(MAKE) -C bootloader $(MAKEFLAGS) clean + @printf "CLEAN libopencm3\n"; \ + $(MAKE) -C libopencm3 $(MAKEFLAGS) clean $(Q)for i in tests/*; do \ if [ -d $$i ]; then \ printf "CLEAN $$i\n"; \ diff --git a/libopencm3 b/libopencm3 new file mode 160000 index 00000000..5830a1ee --- /dev/null +++ b/libopencm3 @@ -0,0 +1 @@ +Subproject commit 5830a1ee8a4c2e3b3a2a8fd2c56ad6d368e42eb0