All of
 help / color / mirror / Atom feed
From: (Olof Johansson)
Subject: [PATCH v2] arm64: enable more compressed Image formats
Date: Thu, 16 Jul 2015 13:26:16 -0700	[thread overview]
Message-ID: <> (raw)

Plumb up Makefile arguments for the already supported formats in the kbuild
system: lz4, bzip2, lzma, and lzo.

Note that just as with Image.gz, these images are not self-decompressing and
the booting firmware still needs to handle decompression before launching the
kernel image.

Signed-off-by: Olof Johansson <>

New in v2: Split Image and Image.% targets due to make warnings.

 arch/arm64/Makefile      |  5 ++++-
 arch/arm64/boot/Makefile | 12 ++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index 4d2a925998f9..0953a97b5119 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -58,7 +58,10 @@ all:	$(KBUILD_IMAGE) $(KBUILD_DTBS)
 boot := arch/arm64/boot
-Image Image.gz: vmlinux
+Image: vmlinux
+	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
+Image.%: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 zinstall install: vmlinux
diff --git a/arch/arm64/boot/Makefile b/arch/arm64/boot/Makefile
index 5a0e3ab854a5..abcbba2f01ba 100644
--- a/arch/arm64/boot/Makefile
+++ b/arch/arm64/boot/Makefile
@@ -19,9 +19,21 @@ targets := Image Image.gz
 $(obj)/Image: vmlinux FORCE
 	$(call if_changed,objcopy)
+$(obj)/Image.bz2: $(obj)/Image FORCE
+	$(call if_changed,bzip2)
 $(obj)/Image.gz: $(obj)/Image FORCE
 	$(call if_changed,gzip)
+$(obj)/Image.lz4: $(obj)/Image FORCE
+	$(call if_changed,lz4)
+$(obj)/Image.lzma: $(obj)/Image FORCE
+	$(call if_changed,lzma)
+$(obj)/Image.lzo: $(obj)/Image FORCE
+	$(call if_changed,lzo)
 install: $(obj)/Image
 	$(CONFIG_SHELL) $(srctree)/$(src)/ $(KERNELRELEASE) \
 	$(obj)/Image "$(INSTALL_PATH)"

                 reply	other threads:[~2015-07-16 20:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --subject='Re: [PATCH v2] arm64: enable more compressed Image formats' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.