diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-07-19 01:37:54 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-08-06 12:55:53 -0400 |
commit | 67df6cc665dc3441bf5eb2ad7018e969463a2588 (patch) | |
tree | 1726543429631fdb6fcd6670bb80b9ae338eb9c5 /arch/blackfin/boot | |
parent | 382dbe5b39a4efa6fdb3e5093e5d0bdbb5c5301f (diff) |
Blackfin: add support for LZO compressed kernels
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/boot')
-rw-r--r-- | arch/blackfin/boot/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/blackfin/boot/Makefile b/arch/blackfin/boot/Makefile index d1b3d6051fdf..13d2dbd658e3 100644 --- a/arch/blackfin/boot/Makefile +++ b/arch/blackfin/boot/Makefile | |||
@@ -8,8 +8,8 @@ | |||
8 | 8 | ||
9 | MKIMAGE := $(srctree)/scripts/mkuboot.sh | 9 | MKIMAGE := $(srctree)/scripts/mkuboot.sh |
10 | 10 | ||
11 | targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.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.xip | 12 | extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip |
13 | 13 | ||
14 | UIMAGE_OPTS-y := | 14 | UIMAGE_OPTS-y := |
15 | UIMAGE_OPTS-$(CONFIG_RAMKERNEL) += -a $(CONFIG_BOOT_LOAD) | 15 | UIMAGE_OPTS-$(CONFIG_RAMKERNEL) += -a $(CONFIG_BOOT_LOAD) |
@@ -33,6 +33,9 @@ $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE | |||
33 | $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE | 33 | $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE |
34 | $(call if_changed,lzma) | 34 | $(call if_changed,lzma) |
35 | 35 | ||
36 | $(obj)/vmlinux.bin.lzo: $(obj)/vmlinux.bin FORCE | ||
37 | $(call if_changed,lzo) | ||
38 | |||
36 | # The mkimage tool wants 64bytes prepended to the image | 39 | # The mkimage tool wants 64bytes prepended to the image |
37 | quiet_cmd_mk_bin_xip = BIN $@ | 40 | quiet_cmd_mk_bin_xip = BIN $@ |
38 | cmd_mk_bin_xip = ( printf '%64s' | tr ' ' '\377' ; cat $< ) > $@ | 41 | cmd_mk_bin_xip = ( printf '%64s' | tr ' ' '\377' ; cat $< ) > $@ |
@@ -51,6 +54,9 @@ $(obj)/vmImage.gz: $(obj)/vmlinux.bin.gz | |||
51 | $(obj)/vmImage.lzma: $(obj)/vmlinux.bin.lzma | 54 | $(obj)/vmImage.lzma: $(obj)/vmlinux.bin.lzma |
52 | $(call if_changed,uimage,lzma) | 55 | $(call if_changed,uimage,lzma) |
53 | 56 | ||
57 | $(obj)/vmImage.lzo: $(obj)/vmlinux.bin.lzo | ||
58 | $(call if_changed,uimage,lzo) | ||
59 | |||
54 | $(obj)/vmImage.xip: $(obj)/vmlinux.bin.xip | 60 | $(obj)/vmImage.xip: $(obj)/vmlinux.bin.xip |
55 | $(call if_changed,uimage,none) | 61 | $(call if_changed,uimage,none) |
56 | 62 | ||
@@ -58,6 +64,7 @@ suffix-y := bin | |||
58 | suffix-$(CONFIG_KERNEL_GZIP) := gz | 64 | suffix-$(CONFIG_KERNEL_GZIP) := gz |
59 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 | 65 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 |
60 | suffix-$(CONFIG_KERNEL_LZMA) := lzma | 66 | suffix-$(CONFIG_KERNEL_LZMA) := lzma |
67 | suffix-$(CONFIG_KERNEL_LZO) := lzo | ||
61 | suffix-$(CONFIG_ROMKERNEL) := xip | 68 | suffix-$(CONFIG_ROMKERNEL) := xip |
62 | 69 | ||
63 | $(obj)/vmImage: $(obj)/vmImage.$(suffix-y) | 70 | $(obj)/vmImage: $(obj)/vmImage.$(suffix-y) |