Merge git://git.infradead.org/embedded-2.6
[linux-2.6] / arch / cris / arch-v10 / boot / compressed / Makefile
1 #
2 # arch/cris/arch-v10/boot/compressed/Makefile
3 #
4
5 asflags-y += $(LINUXINCLUDE)
6 ccflags-y += -O2 $(LINUXINCLUDE)
7 ldflags-y += -T $(srctree)/$(obj)/decompress.ld
8 OBJECTS = $(obj)/head.o $(obj)/misc.o
9 OBJCOPYFLAGS = -O binary --remove-section=.bss
10
11 quiet_cmd_image = BUILD   $@
12 cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
13
14 targets := vmlinux piggy.gz decompress.o decompress.bin
15
16 $(obj)/decompress.o: $(OBJECTS) FORCE
17         $(call if_changed,ld)
18
19 $(obj)/decompress.bin: $(obj)/decompress.o FORCE
20         $(call if_changed,objcopy)
21
22 $(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
23         $(call if_changed,image)
24
25 $(obj)/piggy.gz: $(obj)/../Image FORCE
26         $(call if_changed,gzip)
27