diff options
author | Hirokazu Takata <takata@linux-m32r.org> | 2009-10-14 20:21:56 -0400 |
---|---|---|
committer | Hirokazu Takata <takata@linux-m32r.org> | 2009-11-03 18:37:33 -0500 |
commit | 337214e8c6b0c777713b2483749f9c03102a416c (patch) | |
tree | ee60e2d0be42716812852309e984757c330286da /arch/m32r/boot/compressed/Makefile | |
parent | e968b8d404ae8ab4ef218cd145f6dcb71e65154b (diff) |
m32r: bzip2/lzma kernel compression support
- Support bzip2 and lzma kernel compression for m32r.
- Clean up arch/m32r/boot/compressed/misc.c.
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Diffstat (limited to 'arch/m32r/boot/compressed/Makefile')
-rw-r--r-- | arch/m32r/boot/compressed/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/arch/m32r/boot/compressed/Makefile b/arch/m32r/boot/compressed/Makefile index 560484ae35ec..1003880d0dfd 100644 --- a/arch/m32r/boot/compressed/Makefile +++ b/arch/m32r/boot/compressed/Makefile | |||
@@ -4,8 +4,8 @@ | |||
4 | # create a compressed vmlinux image from the original vmlinux | 4 | # create a compressed vmlinux image from the original vmlinux |
5 | # | 5 | # |
6 | 6 | ||
7 | targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o \ | 7 | targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \ |
8 | piggy.o vmlinux.lds | 8 | vmlinux.bin.lzma head.o misc.o piggy.o vmlinux.lds |
9 | 9 | ||
10 | OBJECTS = $(obj)/head.o $(obj)/misc.o | 10 | OBJECTS = $(obj)/head.o $(obj)/misc.o |
11 | 11 | ||
@@ -27,6 +27,12 @@ $(obj)/vmlinux.bin: vmlinux FORCE | |||
27 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | 27 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE |
28 | $(call if_changed,gzip) | 28 | $(call if_changed,gzip) |
29 | 29 | ||
30 | $(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE | ||
31 | $(call if_changed,bzip2) | ||
32 | |||
33 | $(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE | ||
34 | $(call if_changed,lzma) | ||
35 | |||
30 | CFLAGS_misc.o += -fpic | 36 | CFLAGS_misc.o += -fpic |
31 | 37 | ||
32 | ifdef CONFIG_MMU | 38 | ifdef CONFIG_MMU |
@@ -37,5 +43,9 @@ endif | |||
37 | 43 | ||
38 | OBJCOPYFLAGS += -R .empty_zero_page | 44 | OBJCOPYFLAGS += -R .empty_zero_page |
39 | 45 | ||
40 | $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE | 46 | suffix_$(CONFIG_KERNEL_GZIP) = gz |
47 | suffix_$(CONFIG_KERNEL_BZIP2) = bz2 | ||
48 | suffix_$(CONFIG_KERNEL_LZMA) = lzma | ||
49 | |||
50 | $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix_y) FORCE | ||
41 | $(call if_changed,ld) | 51 | $(call if_changed,ld) |