Browse Source

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>
tags/v0.10.0-rc1
Andreas Färber 8 years ago
committed by Andreas Fritiofson
parent
commit
e499502e98
2 changed files with 34 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +33
    -0
      contrib/loaders/Makefile

+ 1
- 0
.gitignore View File

@@ -71,6 +71,7 @@ install-sh
libtool
ltmain.sh
Makefile
!contrib/loaders/**/Makefile
mdate-sh
missing
stamp-h1


+ 33
- 0
contrib/loaders/Makefile View File

@@ -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

Loading…
Cancel
Save