Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Blackfin: add support for LZO compressed kernels

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

+12 -3
+1
arch/blackfin/Kconfig
··· 32 32 select HAVE_KERNEL_GZIP if RAMKERNEL 33 33 select HAVE_KERNEL_BZIP2 if RAMKERNEL 34 34 select HAVE_KERNEL_LZMA if RAMKERNEL 35 + select HAVE_KERNEL_LZO if RAMKERNEL 35 36 select HAVE_OPROFILE 36 37 select ARCH_WANT_OPTIONAL_GPIOLIB 37 38
+2 -1
arch/blackfin/Makefile
··· 140 140 141 141 INSTALL_PATH ?= /tftpboot 142 142 boot := arch/$(ARCH)/boot 143 - BOOT_TARGETS = vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.xip 143 + BOOT_TARGETS = vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.lzo vmImage.xip 144 144 PHONY += $(BOOT_TARGETS) install 145 145 KBUILD_IMAGE := $(boot)/vmImage 146 146 ··· 158 158 echo ' vmImage.bz2 - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.bz2)' 159 159 echo '* vmImage.gz - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.gz)' 160 160 echo ' vmImage.lzma - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.lzma)' 161 + echo ' vmImage.lzo - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.lzo)' 161 162 echo ' vmImage.xip - XIP Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.xip)' 162 163 echo ' install - Install kernel using' 163 164 echo ' (your) ~/bin/$(INSTALLKERNEL) or'
+9 -2
arch/blackfin/boot/Makefile
··· 8 8 9 9 MKIMAGE := $(srctree)/scripts/mkuboot.sh 10 10 11 - targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.xip 12 - extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.xip 11 + targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.lzo vmImage.xip 12 + extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip 13 13 14 14 UIMAGE_OPTS-y := 15 15 UIMAGE_OPTS-$(CONFIG_RAMKERNEL) += -a $(CONFIG_BOOT_LOAD) ··· 33 33 $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE 34 34 $(call if_changed,lzma) 35 35 36 + $(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE 37 + $(call if_changed,lzo) 38 + 36 39 # The mkimage tool wants 64bytes prepended to the image 37 40 quiet_cmd_mk_bin_xip = BIN $@ 38 41 cmd_mk_bin_xip = ( printf '%64s' | tr ' ' '\377' ; cat $< ) > $@ ··· 54 51 $(obj)/vmImage.lzma: $(obj)/vmlinux.bin.lzma 55 52 $(call if_changed,uimage,lzma) 56 53 54 + $(obj)/vmImage.lzo: $(obj)/vmlinux.bin.lzo 55 + $(call if_changed,uimage,lzo) 56 + 57 57 $(obj)/vmImage.xip: $(obj)/vmlinux.bin.xip 58 58 $(call if_changed,uimage,none) 59 59 ··· 64 58 suffix-$(CONFIG_KERNEL_GZIP) := gz 65 59 suffix-$(CONFIG_KERNEL_BZIP2) := bz2 66 60 suffix-$(CONFIG_KERNEL_LZMA) := lzma 61 + suffix-$(CONFIG_KERNEL_LZO) := lzo 67 62 suffix-$(CONFIG_ROMKERNEL) := xip 68 63 69 64 $(obj)/vmImage: $(obj)/vmImage.$(suffix-y)