]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/Makefile
mod hw version: (#631)
[proxmark3-svn] / armsrc / Makefile
index 3a7293e574a3ee7dbd44693950a7b2e659f01571..f0a0c0ffda2c54b976aeef0b2fe467e0dbd85894 100644 (file)
@@ -64,6 +64,9 @@ ARMSRC = fpgaloader.c \
        optimized_cipher.c \
        hfsnoop.c
 
+VERSIONSRC = version.c \
+       fpga_version_info.c
+
 # Do not move this inclusion before the definition of {THUMB,ASM,ARM}SRC
 include ../common/Makefile.common
 
@@ -74,6 +77,14 @@ all: $(OBJS)
 
 .DELETE_ON_ERROR:
 
+# version.c should be remade on every compilation
+.PHONY: version.c
+version.c: default_version.c
+       perl ../tools/mkversion.pl .. > $@ || $(COPY) $^ $@ 
+
+fpga_version_info.c: $(FPGA_BITSTREAMS) $(FPGA_COMPRESSOR)
+       $(FPGA_COMPRESSOR) -v $(filter %.bit,$^) $@
+
 $(OBJDIR)/fpga_all.o: $(OBJDIR)/fpga_all.bit.z
        $(OBJCOPY) -O elf32-littlearm -I binary -B arm --prefix-sections=fpga_all_bit $^ $@
 
Impressum, Datenschutz