X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Fimage%2FMakefile;h=5fe8ae4cbe8811e6e0b9ecfe0d9682941cd02f64;hb=0c0b87293e46fd483a823f4b40244db8e8d3dd11;hp=7531340206a6ea05899c76eced84eb7b3840f84d;hpb=2995030b470824567895e46d6c37cad6f20cf4a1;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index 7531340206..5fe8ae4cbe 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -453,10 +453,16 @@ Image/Build/MyLoader/buildkernel=$(call PatchKernelLzma,$(2),$(3)) Image/Build/MyLoader/initramfs=$(call PatchKernel/initramfs,$(2),$(3)) define Image/Build/MyLoader - -$(STAGING_DIR_HOST)/bin/mkmylofw -B $(2) -s $(4) \ - -p0x030000:0xe0000:al:0x80060000:kernel:$(KDIR_TMP)/vmlinux-$(2).bin.lzma \ - -p0x110000:0:::rootfs:$(KDIR)/root.$(1) \ - $(call imgname,$(1),$(2))-$(5)-factory.img + $(eval fwsize=$(shell echo $$(($(4)-0x30000-4*64*1024)))) + $(eval fwimage=$(KDIR_TMP)/$(2)-$(5)-firmware.bin) + $(call CatFiles,$(KDIR_TMP)/vmlinux-$(2).bin.lzma,65536,$(KDIR)/root.$(1),$(fwsize),$(fwimage)) + if [ -e "$(fwimage)" ]; then \ + cp $(fwimage) $(call imgname,$(1),$(2))-$(5)-sysupgrade.bin; \ + $(STAGING_DIR_HOST)/bin/mkmylofw -B $(2) -s $(4) -v \ + -p0x00030000:0:al:0x80060000:firmware:$(fwimage) \ + $(call imgname,$(1),$(2))-$(5)-factory.img; \ + true; \ + fi endef