- $(OBJCOPY) -Osrec --srec-forceS3 --no-change-warnings \
- --change-section-address bootphase1-0x100000 \
- --change-section-address bootphase2-0x100000 \
- --change-section-address fpgaimage-0x100000 \
- --change-section-address .start-0x100000 \
- --change-section-address .text-0x100000 \
- --change-section-address .rodata-0x100000 $^ $@
+ $(OBJCOPY) -Osrec --srec-forceS3 --strip-debug $(OBJCOPY_TRANSLATIONS) $^ $@
+
+# version.c should be remade on every compilation
+.PHONY: version.c
+version.c: default_version.c
+ perl ../tools/mkversion.pl .. > $@ || $(COPY) $^ $@