ar71xx: fix portability errors in dd commands

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19207 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2010-01-18 00:12:15 +00:00
parent bce1ca23fe
commit 764549aa54
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ define Image/Build/WZRHPG300NH
-n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \ -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
-d $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/vmlinux-$(2).uImage; \ -d $(KDIR)/vmlinux-$(2).bin.lzma $(KDIR)/vmlinux-$(2).uImage; \
( \ ( \
dd if=$(KDIR)/vmlinux-$(2).uImage bs=1M conv=sync; \ dd if=$(KDIR)/vmlinux-$(2).uImage bs=1024k conv=sync; \
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \ dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
) > $(call imgname,$(1),$(2))-sysupgrade.bin; \ ) > $(call imgname,$(1),$(2))-sysupgrade.bin; \
fi; fi fi; fi
@ -305,7 +305,7 @@ define Image/Build/WNDR3700
$(KDIR)/vmlinux-$(2).uImage.squashfs $(KDIR)/vmlinux-$(2).uImage.squashfs
-rm -f $(KDIR)/vmlinux-$(2).uImage.squashfs.tmp* -rm -f $(KDIR)/vmlinux-$(2).uImage.squashfs.tmp*
( \ ( \
dd if=$(KDIR)/vmlinux-$(2).uImage.squashfs bs=1M conv=sync; \ dd if=$(KDIR)/vmlinux-$(2).uImage.squashfs bs=1024k conv=sync; \
dd if=$(KDIR)/root.$(1) bs=64k; \ dd if=$(KDIR)/root.$(1) bs=64k; \
) > $(call imgname,$(1),$(2))-sysupgrade.bin ) > $(call imgname,$(1),$(2))-sysupgrade.bin
$(STAGING_DIR_HOST)/bin/mkdniimg \ $(STAGING_DIR_HOST)/bin/mkdniimg \