2 # arch/cris/arch-v32/boot/compressed/Makefile
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
11 quiet_cmd_image = BUILD $@
12 cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
14 targets := vmlinux piggy.gz decompress.o decompress.bin
16 $(obj)/decompress.o: $(OBJECTS) FORCE
19 $(obj)/decompress.bin: $(obj)/decompress.o FORCE
20 $(call if_changed,objcopy)
22 $(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
23 $(call if_changed,image)
25 $(obj)/piggy.gz: $(obj)/../Image FORCE
26 $(call if_changed,gzip)