From 87c5668d38b9ea5e7011b5166a0e93c7f99bb119 Mon Sep 17 00:00:00 2001 From: Markham Date: Thu, 29 Mar 2018 21:53:21 +0200 Subject: [PATCH] fix target ofgwrite --- archive-patches/ofgwrite.patch | 9 +++++++++ make/applications.mk | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 archive-patches/ofgwrite.patch diff --git a/archive-patches/ofgwrite.patch b/archive-patches/ofgwrite.patch new file mode 100644 index 0000000..0bf9ee2 --- /dev/null +++ b/archive-patches/ofgwrite.patch @@ -0,0 +1,9 @@ +--- 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 "$@" diff --git a/make/applications.mk b/make/applications.mk index cf3e2ed..30f08b5 100755 --- a/make/applications.mk +++ b/make/applications.mk @@ -779,6 +779,9 @@ $(D)/ofgwrite: $(ARCHIVE)/ofgwrite-git-$(OFGWRITE_VER).tar.bz2 | $(TARGETPREFIX) $(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 -- 2.39.5