Skip to contentSkip to conversation

arm64: enable more compressed Image formats

PATCH New Olof Johansson 2 participants 3 messages Jul 16, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm64/Makefile      |  2 +-
 arch/arm64/boot/Makefile | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
arch/arm64/Makefile +1 -1
index 4d2a925998f9..435618941c24 100644
@@ -58,7 +58,7 @@ all:	$(KBUILD_IMAGE) $(KBUILD_DTBS)
 
 boot := arch/arm64/boot
 
-Image Image.gz: vmlinux
+Image Image.%: vmlinux
 	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 
 zinstall install: vmlinux
arch/arm64/boot/Makefile +12 -0
index 5a0e3ab854a5..abcbba2f01ba 100644
@@ -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)"
Signature · 1 line
2.0.1.473.gc4d58ca
#1 lore raw

PATCH 1/1 arm64: enable more compressed Image formats

Hi Olof,

Quoted 6 lines · Olof Johansson

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.

No conceptual issues with this, but it breaks my build:

arch/arm64/Makefile:61: *** mixed implicit and normal rules: deprecated syntax arch/arm64/Makefile:61: *** mixed implicit and normal rules: deprecated syntax arch/arm64/Makefile:61: *** mixed implicit and normal rules: deprecated syntax arch/arm64/Makefile:61: *** mixed implicit and normal rules: deprecated syntax make[1]: *** No rule to make target 'Image.gz', needed by 'all'. Stop. make[1]: *** Waiting for unfinished jobs....
make: *** [sub-make] Error 2

I hear some people run auto-builders nowaways that might spot this ;)

Will

#2 lore raw

PATCH 1/1 arm64: enable more compressed Image formats

Quoted 20 lines · Will Deacon

Hi Olof,

Quoted 6 lines · Olof Johansson

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.

No conceptual issues with this, but it breaks my build:

arch/arm64/Makefile:61: *** mixed implicit and normal rules: deprecated syntax arch/arm64/Makefile:61: *** mixed implicit and normal rules: deprecated syntax arch/arm64/Makefile:61: *** mixed implicit and normal rules: deprecated syntax arch/arm64/Makefile:61: *** mixed implicit and normal rules: deprecated syntax make[1]: *** No rule to make target 'Image.gz', needed by 'all'. Stop. make[1]: *** Waiting for unfinished jobs....
make: *** [sub-make] Error 2

Quoted 1 line

I hear some people run auto-builders nowaways that might spot this ;)

Huh. Worked on my manual build. Will respin.

-Olof