summaryrefslogtreecommitdiffstats
path: root/arch/h8300/boot/compressed/Makefile
diff options
context:
space:
mode:
authorYoshinori Sato <ysato@users.sourceforge.jp>2015-12-04 01:20:57 +0900
committerYoshinori Sato <ysato@users.sourceforge.jp>2016-01-20 22:44:13 +0900
commit42b510eb56dea96150dfc0747d4b2486b7fa72e0 (patch)
tree8cc7bc1563f92a9df95abb0a35a91488c0d6a326 /arch/h8300/boot/compressed/Makefile
parentaf3da5798d7b9d3dc7412cb5e1d4ed106dcecefc (diff)
downloadtalos-obmc-linux-42b510eb56dea96150dfc0747d4b2486b7fa72e0.tar.gz
talos-obmc-linux-42b510eb56dea96150dfc0747d4b2486b7fa72e0.zip
h8300: Add LZO compression
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Diffstat (limited to 'arch/h8300/boot/compressed/Makefile')
-rw-r--r--arch/h8300/boot/compressed/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/h8300/boot/compressed/Makefile b/arch/h8300/boot/compressed/Makefile
index d7bc3fa7f2c6..7643633f1330 100644
--- a/arch/h8300/boot/compressed/Makefile
+++ b/arch/h8300/boot/compressed/Makefile
@@ -28,11 +28,16 @@ $(obj)/vmlinux: $(OBJECTS) $(obj)/piggy.o $(LIBGCC) FORCE
$(obj)/vmlinux.bin: vmlinux FORCE
$(call if_changed,objcopy)
-$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
- $(call if_changed,gzip)
+suffix-$(CONFIG_KERNEL_GZIP) := gzip
+suffix-$(CONFIG_KERNEL_LZO) := lzo
+
+$(obj)/vmlinux.bin.$(suffix-y): $(obj)/vmlinux.bin FORCE
+ $(call if_changed,$(suffix-y))
LDFLAGS_piggy.o := -r --format binary --oformat elf32-h8300-linux -T
OBJCOPYFLAGS := -O binary
-$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
+$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.$(suffix-y) FORCE
$(call if_changed,ld)
+
+CFLAGS_misc.o = -O0
OpenPOWER on IntegriCloud