diff options
| author | Olof Johansson <olof@lixom.net> | 2015-07-16 21:26:16 +0100 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 11:00:25 +0200 |
| commit | 576009a09a3fbf3d86c56496f62e18219ee6507c (patch) | |
| tree | 0b7020a337656102121f003fa00efc36d1bf8844 | |
| parent | da5ff5d39a793ee262cea38ae1045826e0284c00 (diff) | |
arm64: enable more compressed Image formats
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>
| -rwxr-xr-x | arch/arm64/Makefile | 5 | ||||
| -rw-r--r-- | arch/arm64/boot/Makefile | 12 |
2 files changed, 16 insertions, 1 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index d0c419f79..203793642 100755 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -64,7 +64,10 @@ dtbs: $(DRVGEN_FILE_LIST) boot := arch/arm64/boot -Image Image.gz: vmlinux +Image: vmlinux + $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ + +Image.%: vmlinux $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ zinstall install: diff --git a/arch/arm64/boot/Makefile b/arch/arm64/boot/Makefile index 489ae2062..51298cc66 100644 --- a/arch/arm64/boot/Makefile +++ b/arch/arm64/boot/Makefile @@ -29,12 +29,24 @@ DTB_OBJS := $(addprefix $(obj)/dts/,$(DTB_LIST)) $(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.gz-dtb: $(obj)/Image.gz $(DTB_OBJS) FORCE $(call if_changed,cat) +$(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: $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ $(obj)/Image System.map "$(INSTALL_PATH)" |
