Merge branch 'r8169-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/romieu...
[linux-2.6] / arch / cris / arch-v32 / boot / compressed / Makefile
1 #
2 # arch/cris/arch-v32/boot/compressed/Makefile
3 #
4
5 asflags-y += -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
6 ccflags-y += -O2 -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
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)