--- /dev/null
+--- a/ofgwrite 2017-12-27 12:04:51.000000000 +0100
++++ b/ofgwrite 2018-03-29 21:48:23.425887268 +0200
+@@ -5,5 +5,5 @@
+ if [ -e /tmp/backup_flash.tar.gz ]; then
+ mv /tmp/backup_flash.tar.gz /newroot/
+ fi
+-cp /usr/bin/ofgwrite_bin /newroot/
++cp /bin/ofgwrite_bin /newroot/
+ /newroot/ofgwrite_bin "$@"
$(REMOVE)/ofgwrite-git-$(OFGWRITE_VER)
$(UNTAR)/ofgwrite-git-$(OFGWRITE_VER).tar.bz2
set -e; cd $(BUILD_TMP)/ofgwrite-git-$(OFGWRITE_VER); \
+ $(PATCH)/ofgwrite.patch; \
+ export CC=$(TARGET)-gcc && \
+ export AR=$(TARGET)-ar && \
$(BUILDENV); \
$(MAKE); \
install -m 755 $(BUILD_TMP)/ofgwrite-git-$(OFGWRITE_VER)/ofgwrite_bin $(TARGETPREFIX)/bin