diff options
Diffstat (limited to 'target/linux/ar71xx/image/ubnt.mk')
-rw-r--r-- | target/linux/ar71xx/image/ubnt.mk | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/target/linux/ar71xx/image/ubnt.mk b/target/linux/ar71xx/image/ubnt.mk index 5a4dc82c4f..be5c397e53 100644 --- a/target/linux/ar71xx/image/ubnt.mk +++ b/target/linux/ar71xx/image/ubnt.mk @@ -5,7 +5,7 @@ # mkubntimage is using the kernel image direct # routerboard creates partitions out of the ubnt header define Build/mkubntimage - $(STAGING_DIR_HOST)/bin/mkfwimage \ + -$(STAGING_DIR_HOST)/bin/mkfwimage \ -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-OpenWrt-$(REVISION) \ -k $(IMAGE_KERNEL) \ -r $@ \ @@ -15,18 +15,19 @@ endef # all UBNT XM device expect the kernel image to have 1024k while flash, when # booting the image, the size doesn't matter. define Build/mkubntimage-split - dd if=$@ of=$@.old1 bs=1024k count=1 - dd if=$@ of=$@.old2 bs=1024k skip=1 + -[ -f $@ ] && ( \ + dd if=$@ of=$@.old1 bs=1024k count=1; \ + dd if=$@ of=$@.old2 bs=1024k skip=1; \ $(STAGING_DIR_HOST)/bin/mkfwimage \ -B $(UBNT_BOARD) -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-OpenWrt-$(REVISION) \ -k $@.old1 \ -r $@.old2 \ - -o $@ - rm $@.old1 $@.old2 + -o $@; \ + rm $@.old1 $@.old2 ) endef define Build/mkubntimage2 - $(STAGING_DIR_HOST)/bin/mkfwimage2 -f 0x9f000000 \ + -$(STAGING_DIR_HOST)/bin/mkfwimage2 -f 0x9f000000 \ -v $(UBNT_TYPE).$(UBNT_CHIP).v6.0.0-OpenWrt-$(REVISION) \ -p jffs2:0x50000:0xf60000:0:0:$@ \ -o $@.new |