POSIX sh version of mkversion

Most targeted platforms have "sh" and don't need Perl as requirement.
Still Perl script is present as fallback.
This commit is contained in:
Philippe Teuwen
2019-08-29 20:58:36 +02:00
parent 0d986ab212
commit 8987e956ac
8 changed files with 67 additions and 6 deletions

View File

@@ -144,7 +144,7 @@ all: $(OBJS)
# version.c should be remade on every time fullimage.stage1.elf should be remade
version.c: default_version.c $(OBJDIR)/fpga_version_info.o $(OBJDIR)/fpga_all.o $(THUMBOBJ) $(ARMOBJ)
$(info [-] GEN $@)
$(Q)perl ../tools/mkversion.pl .. > $@ || $(COPY) $^ $@
$(Q)sh ../tools/mkversion.sh > $@ || perl ../tools/mkversion.pl > $@ || $(COPY) $^ $@
fpga_version_info.c: $(FPGA_BITSTREAMS) | $(FPGA_COMPRESSOR)
$(info [-] GEN $@)