arm64: enable more compressed Image formats
authorOlof Johansson <olof@lixom.net>
Thu, 16 Jul 2015 20:26:16 +0000 (21:26 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Jul 2015 10:08:39 +0000 (11:08 +0100)
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 <olof@lixom.net>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/Makefile
arch/arm64/boot/Makefile

index 4d2a925998f925268a38f661018e2a40c637548a..0953a97b51196fa081913f324a08f3cb3de71ba2 100644 (file)
@@ -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
index 5a0e3ab854a574fbf141b98fec7f0447daa64762..abcbba2f01baad4c76f0c414372ba4713beafa11 100644 (file)
@@ -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)/install.sh $(KERNELRELEASE) \
        $(obj)/Image System.map "$(INSTALL_PATH)"