]> git.webhop.me Git - bs-cst-neutrino-hd.git/commitdiff
fix target ofgwrite
authorMarkham <markham001@gmx.de>
Thu, 29 Mar 2018 19:53:21 +0000 (21:53 +0200)
committerMarkham <markham001@gmx.de>
Thu, 29 Mar 2018 19:53:21 +0000 (21:53 +0200)
archive-patches/ofgwrite.patch [new file with mode: 0644]
make/applications.mk

diff --git a/archive-patches/ofgwrite.patch b/archive-patches/ofgwrite.patch
new file mode 100644 (file)
index 0000000..0bf9ee2
--- /dev/null
@@ -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 "$@"
index cf3e2eda76d6ec11b57a22bce3c530b1935bc835..30f08b51646592dc921480843e32be08290ea7cd 100755 (executable)
@@ -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