aboutsummaryrefslogtreecommitdiff
path: root/contrib/loaders
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2016-05-22 16:57:16 +0200
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2016-08-13 09:17:24 +0100
commite499502e9841d838e5b5657aed98de6e27f860a7 (patch)
tree447c122ef51ecc10c7c2fda7e1e703283ce92643 /contrib/loaders
parent306e04e8259ac091db1208335f418c058e22a02f (diff)
downloadriscv-openocd-e499502e9841d838e5b5657aed98de6e27f860a7.zip
riscv-openocd-e499502e9841d838e5b5657aed98de6e27f860a7.tar.gz
riscv-openocd-e499502e9841d838e5b5657aed98de6e27f860a7.tar.bz2
contrib/loaders: Add umbrella Makefile
Add a Makefile that orchestrates the other loader Makefiles. It assumes that the clean target can be run without cross toolchain. at91sam7x does not successfully build and is not really needed either, therefore left out. Add an exception to .gitignore for any contrib/loaders Makefile. Change-Id: I74456b768472f3190a1721bcf41a777bb8daf973 Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-on: http://openocd.zylin.com/3504 Tested-by: jenkins Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'contrib/loaders')
-rw-r--r--contrib/loaders/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/contrib/loaders/Makefile b/contrib/loaders/Makefile
new file mode 100644
index 0000000..cd37dde
--- /dev/null
+++ b/contrib/loaders/Makefile
@@ -0,0 +1,33 @@
+.PHONY: arm clean-arm
+
+all: arm
+
+common_dirs = \
+ checksum \
+ erase_check \
+ flash/kinetis_ke \
+ watchdog
+
+ARM_CROSS_COMPILE ?= arm-none-eabi-
+
+arm_dirs = \
+ flash/fm4 \
+ flash/xmc1xxx
+
+arm:
+ for d in $(common_dirs); do \
+ $(MAKE) -C $$d arm; \
+ done
+ for d in $(arm_dirs); do \
+ $(MAKE) -C $$d all CROSS_COMPILE=$(ARM_CROSS_COMPILE); \
+ done
+
+clean-arm:
+ for d in $(arm_dirs); do \
+ $(MAKE) -C $$d clean; \
+ done
+
+clean: clean-arm
+ for d in $(common_dirs); do \
+ $(MAKE) -C $$d clean; \
+ done