Skip to content

Commit 67df6cc

Browse files
committed
Blackfin: add support for LZO compressed kernels
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
1 parent 382dbe5 commit 67df6cc

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

‎arch/blackfin/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ config BLACKFIN
3232
select HAVE_KERNEL_GZIP if RAMKERNEL
3333
select HAVE_KERNEL_BZIP2 if RAMKERNEL
3434
select HAVE_KERNEL_LZMA if RAMKERNEL
35+
select HAVE_KERNEL_LZO if RAMKERNEL
3536
select HAVE_OPROFILE
3637
select ARCH_WANT_OPTIONAL_GPIOLIB
3738

‎arch/blackfin/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ archclean:
140140

141141
INSTALL_PATH ?= /tftpboot
142142
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
144144
PHONY += $(BOOT_TARGETS) install
145145
KBUILD_IMAGE := $(boot)/vmImage
146146

@@ -158,6 +158,7 @@ define archhelp
158158
echo ' vmImage.bz2 - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.bz2)'
159159
echo '* vmImage.gz - Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.gz)'
160160
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)'
161162
echo ' vmImage.xip - XIP Kernel-only image for U-Boot (arch/$(ARCH)/boot/vmImage.xip)'
162163
echo ' install - Install kernel using'
163164
echo ' (your) ~/bin/$(INSTALLKERNEL) or'

‎arch/blackfin/boot/Makefile‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
MKIMAGE := $(srctree)/scripts/mkuboot.sh
1010

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
1313

1414
UIMAGE_OPTS-y :=
1515
UIMAGE_OPTS-$(CONFIG_RAMKERNEL) += -a $(CONFIG_BOOT_LOAD)
@@ -33,6 +33,9 @@ $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE
3333
$(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
3434
$(call if_changed,lzma)
3535

36+
$(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE
37+
$(call if_changed,lzo)
38+
3639
# The mkimage tool wants 64bytes prepended to the image
3740
quiet_cmd_mk_bin_xip = BIN $@
3841
cmd_mk_bin_xip = ( printf '%64s' | tr ' ' '\377' ; cat $< ) > $@
@@ -51,13 +54,17 @@ $(obj)/vmImage.gz: $(obj)/vmlinux.bin.gz
5154
$(obj)/vmImage.lzma: $(obj)/vmlinux.bin.lzma
5255
$(call if_changed,uimage,lzma)
5356

57+
$(obj)/vmImage.lzo: $(obj)/vmlinux.bin.lzo
58+
$(call if_changed,uimage,lzo)
59+
5460
$(obj)/vmImage.xip: $(obj)/vmlinux.bin.xip
5561
$(call if_changed,uimage,none)
5662

5763
suffix-y := bin
5864
suffix-$(CONFIG_KERNEL_GZIP) := gz
5965
suffix-$(CONFIG_KERNEL_BZIP2) := bz2
6066
suffix-$(CONFIG_KERNEL_LZMA) := lzma
67+
suffix-$(CONFIG_KERNEL_LZO) := lzo
6168
suffix-$(CONFIG_ROMKERNEL) := xip
6269

6370
$(obj)/vmImage: $(obj)/vmImage.$(suffix-y)

0 commit comments

Comments
 (0)