summaryrefslogtreecommitdiffstats
path: root/arch/m32r/boot/compressed/Makefile
diff options
context:
space:
mode:
authorHirokazu Takata2009-10-15 02:21:56 +0200
committerHirokazu Takata2009-11-04 00:37:33 +0100
commit337214e8c6b0c777713b2483749f9c03102a416c (patch)
treeee60e2d0be42716812852309e984757c330286da /arch/m32r/boot/compressed/Makefile
parentm32r: add NOTES to vmlinux.lds.S to remove .note.gnu.build-id section (diff)
downloadkernel-qcow2-linux-337214e8c6b0c777713b2483749f9c03102a416c.tar.gz
kernel-qcow2-linux-337214e8c6b0c777713b2483749f9c03102a416c.tar.xz
kernel-qcow2-linux-337214e8c6b0c777713b2483749f9c03102a416c.zip
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/Makefile16
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 @@
# create a compressed vmlinux image from the original vmlinux
#
-targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o \
- piggy.o vmlinux.lds
+targets := vmlinux vmlinux.bin vmlinux.bin.gz vmlinux.bin.bz2 \
+ vmlinux.bin.lzma head.o misc.o piggy.o vmlinux.lds
OBJECTS = $(obj)/head.o $(obj)/misc.o
@@ -27,6 +27,12 @@ $(obj)/vmlinux.bin: vmlinux FORCE
$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
$(call if_changed,gzip)
+$(obj)/vmlinux.bin.bz2: $(obj)/vmlinux.bin FORCE
+ $(call if_changed,bzip2)
+
+$(obj)/vmlinux.bin.lzma: $(obj)/vmlinux.bin FORCE
+ $(call if_changed,lzma)
+
CFLAGS_misc.o += -fpic
ifdef CONFIG_MMU
@@ -37,5 +43,9 @@ endif
OBJCOPYFLAGS += -R .empty_zero_page
-$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
+suffix_$(CONFIG_KERNEL_GZIP) = gz
+suffix_$(CONFIG_KERNEL_BZIP2) = bz2
+suffix_$(CONFIG_KERNEL_LZMA) = lzma
+
+$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix_y) FORCE
$(call if_changed,ld)