From: Paul Mundt <lethal@linux-sh.org>
Date: Tue, 21 Jul 2009 08:37:18 +0000 (+0900)
Subject: Merge branches 'sh/compressors' and 'sh/stable-updates'
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc6cca3917e6594eb93c0b5e2226342eab175041;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

Merge branches 'sh/compressors' and 'sh/stable-updates'
---

fc6cca3917e6594eb93c0b5e2226342eab175041
diff --cc arch/sh/boot/compressed/Makefile
index 59e2937caa2f,b31618e9e8c8,9531bf1b7c2f..6182eca5180a
--- a/arch/sh/boot/compressed/Makefile
+++ b/arch/sh/boot/compressed/Makefile
@@@@ -39,22 -39,18 -38,10 +39,18 @@@@ $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy
   $(obj)/vmlinux.bin: vmlinux FORCE
   	$(call if_changed,objcopy)
   
  -$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
  +vmlinux.bin.all-y := $(obj)/vmlinux.bin
  +
  +$(obj)/vmlinux.bin.gz: $(vmlinux.bin.all-y) FORCE
   	$(call if_changed,gzip)
  +$(obj)/vmlinux.bin.bz2: $(vmlinux.bin.all-y) FORCE
  +	$(call if_changed,bzip2)
  +$(obj)/vmlinux.bin.lzma: $(vmlinux.bin.all-y) FORCE
  +	$(call if_changed,lzma)
   
-  suffix-$(CONFIG_KERNEL_GZIP)	:= gz
-  suffix-$(CONFIG_KERNEL_BZIP2)	:= bz2
-  suffix-$(CONFIG_KERNEL_LZMA)	:= lzma
-  
   OBJCOPYFLAGS += -R .empty_zero_page
   
  -$(obj)/piggy.o: $(obj)/piggy.S $(obj)/vmlinux.bin.gz FORCE
  -	$(call if_changed,as_o_S)
  +LDFLAGS_piggy.o := -r --format binary --oformat $(ld-bfd) -T
  +
  +$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y) FORCE
  +	$(call if_changed,ld)