Skip to content

Commit

Permalink
ar71xx: image: add MkuImage{Gzip,Lzma}/initramfs helpers
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31115 3c298f89-4303-0410-b956-a3cf2f4a3e73
  • Loading branch information
juhosg committed Mar 27, 2012
1 parent 3b5a636 commit bba495f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions target/linux/ar71xx/image/Makefile
Expand Up @@ -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
Expand Down Expand Up @@ -232,8 +242,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
Expand All @@ -242,8 +251,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
Expand Down

0 comments on commit bba495f

Please sign in to comment.