diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-07-11 13:21:19 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-07-11 13:21:19 -0400 |
commit | 07e88e1bfc128681a80578724fde6a872f413862 (patch) | |
tree | 7e85e26152bcc277d6e2e288aac155f155ce5c4e /arch/sh/boot/compressed/Makefile | |
parent | df8ce2595fbac8b046322fce9df61ce1cf8ddf62 (diff) |
sh: bzip2/lzma zImage support.
This plugs in bzip2 and lzma support for zImages.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boot/compressed/Makefile')
-rw-r--r-- | arch/sh/boot/compressed/Makefile | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/arch/sh/boot/compressed/Makefile b/arch/sh/boot/compressed/Makefile index 9531bf1b7c2f..0a4e7af8a71b 100644 --- a/arch/sh/boot/compressed/Makefile +++ b/arch/sh/boot/compressed/Makefile | |||
@@ -5,6 +5,7 @@ | |||
5 | # | 5 | # |
6 | 6 | ||
7 | targets := vmlinux vmlinux.bin vmlinux.bin.gz \ | 7 | targets := vmlinux vmlinux.bin vmlinux.bin.gz \ |
8 | vmlinux.bin.bz2 vmlinux.bin.lzma \ | ||
8 | head_$(BITS).o misc_$(BITS).o piggy.o | 9 | head_$(BITS).o misc_$(BITS).o piggy.o |
9 | 10 | ||
10 | OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc_$(BITS).o $(obj)/cache.o | 11 | OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc_$(BITS).o $(obj)/cache.o |
@@ -38,10 +39,22 @@ $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(LIBGCC) FORCE | |||
38 | $(obj)/vmlinux.bin: vmlinux FORCE | 39 | $(obj)/vmlinux.bin: vmlinux FORCE |
39 | $(call if_changed,objcopy) | 40 | $(call if_changed,objcopy) |
40 | 41 | ||
41 | $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE | 42 | vmlinux.bin.all-y := $(obj)/vmlinux.bin |
43 | |||
44 | $(obj)/vmlinux.bin.gz: $(vmlinux.bin.all-y) FORCE | ||
42 | $(call if_changed,gzip) | 45 | $(call if_changed,gzip) |
46 | $(obj)/vmlinux.bin.bz2: $(vmlinux.bin.all-y) FORCE | ||
47 | $(call if_changed,bzip2) | ||
48 | $(obj)/vmlinux.bin.lzma: $(vmlinux.bin.all-y) FORCE | ||
49 | $(call if_changed,lzma) | ||
50 | |||
51 | suffix-$(CONFIG_KERNEL_GZIP) := gz | ||
52 | suffix-$(CONFIG_KERNEL_BZIP2) := bz2 | ||
53 | suffix-$(CONFIG_KERNEL_LZMA) := lzma | ||
43 | 54 | ||
44 | OBJCOPYFLAGS += -R .empty_zero_page | 55 | OBJCOPYFLAGS += -R .empty_zero_page |
45 | 56 | ||
46 | $(obj)/piggy.o: $(obj)/piggy.S $(obj)/vmlinux.bin.gz FORCE | 57 | LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T |
47 | $(call if_changed,as_o_S) | 58 | |
59 | $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y) FORCE | ||
60 | $(call if_changed,ld) | ||