aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/boot/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-07-19 01:37:54 -0400
committerMike Frysinger <vapier@gentoo.org>2010-08-06 12:55:53 -0400
commit67df6cc665dc3441bf5eb2ad7018e969463a2588 (patch)
tree1726543429631fdb6fcd6670bb80b9ae338eb9c5 /arch/blackfin/boot/Makefile
parent382dbe5b39a4efa6fdb3e5093e5d0bdbb5c5301f (diff)
Blackfin: add support for LZO compressed kernels
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/boot/Makefile')
-rw-r--r--arch/blackfin/boot/Makefile11
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
9MKIMAGE := $(srctree)/scripts/mkuboot.sh 9MKIMAGE := $(srctree)/scripts/mkuboot.sh
10 10
11targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.xip 11targets := vmImage vmImage.bin vmImage.bz2 vmImage.gz vmImage.lzma vmImage.lzo vmImage.xip
12extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.xip 12extra-y += vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 vmlinux.bin.lzma vmlinux.bin.lzo vmlinux.bin.xip
13 13
14UIMAGE_OPTS-y := 14UIMAGE_OPTS-y :=
15UIMAGE_OPTS-$(CONFIG_RAMKERNEL) += -a $(CONFIG_BOOT_LOAD) 15UIMAGE_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
37quiet_cmd_mk_bin_xip = BIN $@ 40quiet_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
58suffix-$(CONFIG_KERNEL_GZIP) := gz 64suffix-$(CONFIG_KERNEL_GZIP) := gz
59suffix-$(CONFIG_KERNEL_BZIP2) := bz2 65suffix-$(CONFIG_KERNEL_BZIP2) := bz2
60suffix-$(CONFIG_KERNEL_LZMA) := lzma 66suffix-$(CONFIG_KERNEL_LZMA) := lzma
67suffix-$(CONFIG_KERNEL_LZO) := lzo
61suffix-$(CONFIG_ROMKERNEL) := xip 68suffix-$(CONFIG_ROMKERNEL) := xip
62 69
63$(obj)/vmImage: $(obj)/vmImage.$(suffix-y) 70$(obj)/vmImage: $(obj)/vmImage.$(suffix-y)