X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3b5a6363a0cebe502193f0af8954caf8db8c52f5..f3b449288bc505faac56e716e29fa3b220064806:/target/linux/ar71xx/image/Makefile diff --git a/target/linux/ar71xx/image/Makefile b/target/linux/ar71xx/image/Makefile index acfa83188..46eac5e12 100644 --- a/target/linux/ar71xx/image/Makefile +++ b/target/linux/ar71xx/image/Makefile @@ -68,11 +68,21 @@ define MkuImageLzma $(call MkuImage,lzma,,$(KDIR_TMP)/vmlinux-$(1).bin.lzma,$(KDIR_TMP)/vmlinux-$(1).uImage) endef +define MkuImageLzma/initramfs + $(call PatchKernelLzma,$(1),$(2)) + $(call MkuImage,lzma,,$(KDIR_TMP)/vmlinux-$(1).bin.lzma,$(call imgname,initramfs,$(1))-uImage.bin) +endef + define MkuImageGzip $(call PatchKernelGzip,$(1),$(2)) $(call MkuImage,gzip,,$(KDIR_TMP)/vmlinux-$(1).bin.gz,$(KDIR_TMP)/vmlinux-$(1).uImage) endef +define MkuImageGzip/initramfs + $(call PatchKernelGzip,$(1),$(2)) + $(call MkuImage,gzip,,$(KDIR_TMP)/vmlinux-$(1).bin.gz,$(call imgname,initramfs,$(1))-uImage.bin) +endef + define MkuImageOKLI $(call MkuImage,lzma,-M 0x4f4b4c49,$(KDIR)/vmlinux.bin.lzma,$(KDIR_TMP)/vmlinux-$(1).okli) endef @@ -211,11 +221,19 @@ define Image/Build/Cameo913x $(call Image/Build/Cameo,$(1),$(2),$(3),$(cameo913x_mtdlayout),983040,2949120,$(4)) endef +define Image/Build/Cameo913x/initramfs + $(call MkuImageLzma/initramfs,$(2),$(3) $(cameo913x_mtdlayout)) +endef + cameo7240_mtdlayout=mtdparts=spi0.0:192k(u-boot)ro,64k(nvram)ro,960k(kernel),2752k(rootfs),64k(mac)ro,64k(art)ro,3712k@0x40000(firmware) define Image/Build/Cameo7240 $(call Image/Build/Cameo,$(1),$(2),$(3),$(cameo7240_mtdlayout),983040,2818048,$(4)) endef +define Image/Build/Cameo7240/initramfs + $(call MkuImageLzma/initramfs,$(2),$(3) $(cameo7240_mtdlayout)) +endef + define Image/Build/Ath $(call Sysupgrade/$(7),$(1),$(2),$(5),$(6)) if [ -e "$(call sysupname,$(1),$(2))" ]; then \ @@ -232,8 +250,7 @@ define Image/Build/AthGzip endef define Image/Build/AthGzip/initramfs - $(call MkuImageGzip,$(2),$(3) $(4)) - $(CP) $(KDIR_TMP)/vmlinux-$(2).uImage $(call imgname,$(1),$(2))-uImage.bin + $(call MkuImageGzip/initramfs,$(2),$(3) $(4)) endef define Image/Build/AthLzma @@ -242,8 +259,7 @@ define Image/Build/AthLzma endef define Image/Build/AthLzma/initramfs - $(call MkuImageLzma,$(2),$(3) $(4)) - $(CP) $(KDIR_TMP)/vmlinux-$(2).uImage $(call imgname,$(1),$(2))-uImage.bin + $(call MkuImageLzma/initramfs,$(2),$(3) $(4)) endef define Image/Build/PB4X @@ -334,6 +350,10 @@ define Image/Build/ALFA fi endef +define Image/Build/ALFA/initramfs + $(call MkuImageLzma/initramfs,$(2),$(3)) +endef + define Image/Build/TPLINKOLD/loader $(call Image/BuildLoaderAlone,$(1),gz,$(2),0x22000,0) endef @@ -560,6 +580,10 @@ define Image/Build/Zcomax fi endef +define Image/Build/Zcomax/initramfs + $(call MkuImageLzma/initramfs,$(2),$(3)) +endef + define Image/Build/Template/initramfs/initramfs $(call Image/Build/$(1)/initramfs,initramfs,$(2),$(3),$(4),$(5),$(6),$(7),$(8)) endef