Initial commit
[wrt350n-kernel.git] / arch / cris / arch-v32 / boot / compressed / Makefile
blob2c8c2c3039c518c2c90b06902eab23dec30c779f
2 # arch/cris/arch-v32/boot/compressed/Makefile
5 CC = gcc-cris -mlinux -march=v32 $(LINUXINCLUDE)
6 asflags-y += -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
7 ccflags-y += -O2 -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
8 LD = gcc-cris -mlinux -march=v32 -nostdlib
9 ldflags-y += -T $(obj)/decompress.ld
10 obj-y = head.o misc.o
11 OBJECTS = $(obj)/head.o $(obj)/misc.o
12 OBJCOPY = objcopy-cris
13 OBJCOPYFLAGS = -O binary --remove-section=.bss
15 quiet_cmd_image = BUILD $@
16 cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
18 targets := vmlinux piggy.gz decompress.o decompress.bin
20 $(obj)/decompress.o: $(OBJECTS) FORCE
21 $(call if_changed,ld)
23 $(obj)/decompress.bin: $(obj)/decompress.o FORCE
24 $(call if_changed,objcopy)
26 $(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
27 $(call if_changed,image)
29 $(obj)/piggy.gz: $(obj)/../Image FORCE
30 $(call if_changed,gzip)