ar71xx: fix initramfs images generation after r37049
Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37120 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
16766264d1
commit
ffccd6fa5f
|
@ -64,15 +64,15 @@ define CompressLzma
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PatchKernelLzma
|
define PatchKernelLzma
|
||||||
cp $(KDIR)/vmlinux $(KDIR_TMP)/vmlinux-$(1)
|
cp $(KDIR)/vmlinux$(4) $(KDIR_TMP)/vmlinux$(4)-$(1)
|
||||||
$(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR_TMP)/vmlinux-$(1) "$(strip $(2))"
|
$(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR_TMP)/vmlinux$(4)-$(1) "$(strip $(2))"
|
||||||
$(call CompressLzma,$(KDIR_TMP)/vmlinux-$(1),$(KDIR_TMP)/vmlinux-$(1).bin.lzma,$(3))
|
$(call CompressLzma,$(KDIR_TMP)/vmlinux$(4)-$(1),$(KDIR_TMP)/vmlinux$(4)-$(1).bin.lzma,$(3))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define PatchKernelGzip
|
define PatchKernelGzip
|
||||||
cp $(KDIR)/vmlinux $(KDIR_TMP)/vmlinux-$(1)
|
cp $(KDIR)/vmlinux$(3) $(KDIR_TMP)/vmlinux$(3)-$(1)
|
||||||
$(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR_TMP)/vmlinux-$(1) "$(strip $(2))"
|
$(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR_TMP)/vmlinux$(3)-$(1) "$(strip $(2))"
|
||||||
gzip -9 -c $(KDIR_TMP)/vmlinux-$(1) > $(KDIR_TMP)/vmlinux-$(1).bin.gz
|
gzip -9 -c $(KDIR_TMP)/vmlinux$(3)-$(1) > $(KDIR_TMP)/vmlinux$(3)-$(1).bin.gz
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define MkuImage
|
define MkuImage
|
||||||
|
@ -87,8 +87,8 @@ define MkuImageLzma
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define MkuImageLzma/initramfs
|
define MkuImageLzma/initramfs
|
||||||
$(call PatchKernelLzma,$(1),$(2))
|
$(call PatchKernelLzma,$(1),$(2),,-initramfs)
|
||||||
$(call MkuImage,lzma,,$(KDIR_TMP)/vmlinux-$(1).bin.lzma,$(call imgname,initramfs,$(1))-uImage.bin)
|
$(call MkuImage,lzma,,$(KDIR_TMP)/vmlinux-initramfs-$(1).bin.lzma,$(call imgname,initramfs,$(1))-uImage.bin)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define MkuImageGzip
|
define MkuImageGzip
|
||||||
|
@ -97,8 +97,8 @@ define MkuImageGzip
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define MkuImageGzip/initramfs
|
define MkuImageGzip/initramfs
|
||||||
$(call PatchKernelGzip,$(1),$(2))
|
$(call PatchKernelGzip,$(1),$(2),-initramfs)
|
||||||
$(call MkuImage,gzip,,$(KDIR_TMP)/vmlinux-$(1).bin.gz,$(call imgname,initramfs,$(1))-uImage.bin)
|
$(call MkuImage,gzip,,$(KDIR_TMP)/vmlinux-initramfs-$(1).bin.gz,$(call imgname,initramfs,$(1))-uImage.bin)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define MkuImageOKLI
|
define MkuImageOKLI
|
||||||
|
@ -758,10 +758,6 @@ define Image/Build/Zcomax/initramfs
|
||||||
$(call MkuImageLzma/initramfs,$(2),$(3) $(4))
|
$(call MkuImageLzma/initramfs,$(2),$(3) $(4))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/Template/initramfs/initramfs
|
|
||||||
$(call Image/Build/$(1)/initramfs,initramfs,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Image/Build/Template/all/squashfs
|
define Image/Build/Template/all/squashfs
|
||||||
$(call Image/Build/$(1),squashfs,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
|
$(call Image/Build/$(1),squashfs,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
|
||||||
endef
|
endef
|
||||||
|
@ -826,6 +822,22 @@ define Image/Build/Template/256k/jffs2-256k
|
||||||
$(call Image/Build/$(1),jffs2-256k,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
|
$(call Image/Build/$(1),jffs2-256k,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Image/Build/Template/64k/initramfs
|
||||||
|
$(call Image/Build/$(1)/initramfs,initramfs,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Image/Build/Template/64kraw/initramfs
|
||||||
|
$(call Image/Build/$(1)/initramfs,initramfs,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Image/Build/Template/128k/initramfs
|
||||||
|
$(call Image/Build/$(1)/initramfs,initramfs,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Image/Build/Template/256k/initramfs
|
||||||
|
$(call Image/Build/$(1)/initramfs,initramfs,$(2),$(3),$(4),$(5),$(6),$(7),$(8))
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(call SingleProfile,ALFA,$(fs_64k),ALFANX,alfa-nx,ALFA-NX,ttyS0,115200,$$(alfa_mtdlayout_8M),1638400,6291456,vmlinux.gz.uImage,pb9x-2.6.31-jffs2))
|
$(eval $(call SingleProfile,ALFA,$(fs_64k),ALFANX,alfa-nx,ALFA-NX,ttyS0,115200,$$(alfa_mtdlayout_8M),1638400,6291456,vmlinux.gz.uImage,pb9x-2.6.31-jffs2))
|
||||||
$(eval $(call SingleProfile,ALFA,$(fs_64k),HORNETUB,hornet-ub,HORNET-UB,ttyATH0,115200,$$(alfa_mtdlayout_8M),1638400,6291456,kernel_image,rootfs_image))
|
$(eval $(call SingleProfile,ALFA,$(fs_64k),HORNETUB,hornet-ub,HORNET-UB,ttyATH0,115200,$$(alfa_mtdlayout_8M),1638400,6291456,kernel_image,rootfs_image))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue