diff options
author | Michele Sardo <msmttchr@gmail.com> | 2017-09-12 08:51:29 +0200 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2018-03-07 23:40:55 +0000 |
commit | cb2f21bf3608f24de5c2e4219626cc464269e830 (patch) | |
tree | b52b819830d9c0699be4af269c2bafafb7f64dfa /contrib/loaders/flash/bluenrg-x/Makefile | |
parent | 8f1f912a7d2cb5777116056fc9d67aa2ea0c9467 (diff) |
Added support for STMicroelectronics BlueNRG-1 and BlueNRG-2 SoC
Added configuration files and flash loaders.
Change-Id: I768eb3626f4e0eadb206bef90a867cc146fe8c75
Signed-off-by: Michele Sardo <msmttchr@gmail.com>
Reviewed-on: http://openocd.zylin.com/4226
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'contrib/loaders/flash/bluenrg-x/Makefile')
-rw-r--r-- | contrib/loaders/flash/bluenrg-x/Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/loaders/flash/bluenrg-x/Makefile b/contrib/loaders/flash/bluenrg-x/Makefile new file mode 100644 index 00000000..1a5cfc01 --- /dev/null +++ b/contrib/loaders/flash/bluenrg-x/Makefile @@ -0,0 +1,27 @@ +BIN2C = ../../../../src/helper/bin2char.sh + +CROSS_COMPILE ?= arm-none-eabi- + +CC=$(CROSS_COMPILE)gcc +OBJCOPY=$(CROSS_COMPILE)objcopy +OBJDUMP=$(CROSS_COMPILE)objdump + +CFLAGS = -c -mthumb -mcpu=cortex-m0 -O3 -g + +all: bluenrg-x_write.inc + +.PHONY: clean + +.INTERMEDIATE: bluenrg-x_write.o + +%.o: %.c + $(CC) $(CFLAGS) -Wall -Wextra -Wa,-adhln=$*.lst $< -o $@ + +%.bin: %.o + $(OBJCOPY) -Obinary $< $@ + +%.inc: %.bin + $(BIN2C) < $< > $@ + +clean: + -rm -f *.o *.lst *.bin *.inc |