Commit 67df6cc665dc3441bf5eb2ad7018e969463a2588

Authored by Mike Frysinger
1 parent 382dbe5b39

Blackfin: add support for LZO compressed kernels

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

Showing 3 changed files with 12 additions and 3 deletions Side-by-side Diff

arch/blackfin/Kconfig
... ... @@ -32,6 +32,7 @@
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  
arch/blackfin/Makefile
... ... @@ -140,7 +140,7 @@
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,6 +158,7 @@
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'
arch/blackfin/boot/Makefile
... ... @@ -8,8 +8,8 @@
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,6 +33,9 @@
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 $< ) > $@
... ... @@ -51,6 +54,9 @@
51 54 $(obj)/vmImage.lzma: $(obj)/vmlinux.bin.lzma
52 55 $(call if_changed,uimage,lzma)
53 56  
  57 +$(obj)/vmImage.lzo: $(obj)/vmlinux.bin.lzo
  58 + $(call if_changed,uimage,lzo)
  59 +
54 60 $(obj)/vmImage.xip: $(obj)/vmlinux.bin.xip
55 61 $(call if_changed,uimage,none)
56 62  
... ... @@ -58,6 +64,7 @@
58 64 suffix-$(CONFIG_KERNEL_GZIP) := gz
59 65 suffix-$(CONFIG_KERNEL_BZIP2) := bz2
60 66 suffix-$(CONFIG_KERNEL_LZMA) := lzma
  67 +suffix-$(CONFIG_KERNEL_LZO) := lzo
61 68 suffix-$(CONFIG_ROMKERNEL) := xip
62 69  
63 70 $(obj)/vmImage: $(obj)/vmImage.$(suffix-y)