From: Gabor Juhos Date: Tue, 24 Sep 2013 06:13:14 +0000 (+0000) Subject: ar71xx: image: use the board name for temporary mtdpart files X-Git-Tag: reboot~9164 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=fe525cd2c03aa7660b354b07bd095c556635994e;p=openwrt%2Fopenwrt.git ar71xx: image: use the board name for temporary mtdpart files Signed-off-by: Gabor Juhos SVN-Revision: 38149 --- diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index c7e36af3d0..0b7c98fd3e 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -491,12 +491,12 @@ define Image/Build/UBNT2 $(eval fwsize=$(call mtdpartsize,firmware,$(3))) $(call Sysupgrade/KRuImage,$(1),$(2),0,$$$$(($(fwsize)-4*64*1024)),64) if [ -e "$(call sysupname,$(1),$(2))" ]; then \ - dd if=$(call sysupname,$(1),$(2)) of=$(KDIR_TMP)/$(1)-mtdpart-kernel.bin bs=1024k count=1; \ - dd if=$(call sysupname,$(1),$(2)) of=$(KDIR_TMP)/$(1)-mtdpart-rootfs.bin bs=1024k skip=1; \ + dd if=$(call sysupname,$(1),$(2)) of=$(KDIR_TMP)/$(2)-mtdpart-kernel.bin bs=1024k count=1; \ + dd if=$(call sysupname,$(1),$(2)) of=$(KDIR_TMP)/$(2)-mtdpart-rootfs.bin bs=1024k skip=1; \ $(STAGING_DIR_HOST)/bin/mkfwimage \ -B $(4) -v $(5).$(6).v6.0.0-OpenWrt-$(REVISION) \ - -k $(KDIR_TMP)/$(1)-mtdpart-kernel.bin \ - -r $(KDIR_TMP)/$(1)-mtdpart-rootfs.bin \ + -k $(KDIR_TMP)/$(2)-mtdpart-kernel.bin \ + -r $(KDIR_TMP)/$(2)-mtdpart-rootfs.bin \ -o $(call factoryname,$(1),$(2)); \ fi endef