diff options
author | Joseph C. Lehner <joseph.c.lehner@gmail.com> | 2016-06-01 16:50:03 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-06-05 23:23:57 +0200 |
commit | 065de8bd7adf4b8f13f07d5a813e979547b9affe (patch) | |
tree | 178ad99fa50e5da52d99072cfb6aac04c633f25c | |
parent | 8b0fbd8e701422baac6455ede312b520cafbc92b (diff) | |
download | mtk-20170518-065de8bd7adf4b8f13f07d5a813e979547b9affe.zip mtk-20170518-065de8bd7adf4b8f13f07d5a813e979547b9affe.tar.gz mtk-20170518-065de8bd7adf4b8f13f07d5a813e979547b9affe.tar.bz2 |
ramips: fix Netgear EX2700 images
Calling `cat foo bar | dd ... conv=sync` *may* add
extraneous padding. Avoid this.
Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
-rw-r--r-- | target/linux/ramips/image/mt7620.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk index d6da803..935f755 100644 --- a/target/linux/ramips/image/mt7620.mk +++ b/target/linux/ramips/image/mt7620.mk @@ -8,9 +8,9 @@ define Build/tplink-header endef define Build/pad-kernel-ex2700 - dd if=/dev/zero of=$@.pad bs=64 count=1 && cat $@ $@.pad \ - | dd of=$@.new bs=64k conv=sync && truncate -s -64 $@.new \ - && cat ex2700-fakeroot.uImage >> $@.new && rm $@.pad && mv $@.new $@ + cp $@ $@.tmp && dd if=/dev/zero bs=64 count=1 >> $@.tmp \ + && dd if=$@.tmp of=$@.new bs=64k conv=sync && truncate -s -64 $@.new \ + && cat ex2700-fakeroot.uImage >> $@.new && rm $@.tmp && mv $@.new $@ endef define Build/netgear-header |