Linux 3.6-rc6
[linux/fpc-iii.git] / arch / cris / boot / compressed / Makefile
blob8fe9338c1775be79749a0013df529d8d46613d53
2 # arch/cris/boot/compressed/Makefile
5 asflags-y += $(LINUXINCLUDE)
6 ccflags-y += -O2 $(LINUXINCLUDE)
8 # asflags-$(CONFIG_ETRAX_ARCH_V32) += -I$(srctree)/include/asm/mach \
9 # -I$(srctree)/include/asm/arch
10 # ccflags-$(CONFIG_ETRAX_ARCH_V32) += -O2 -I$(srctree)/include/asm/mach
11 # -I$(srctree)/include/asm/arch
13 arch-$(CONFIG_ETRAX_ARCH_V10) = v10
14 arch-$(CONFIG_ETRAX_ARCH_V32) = v32
16 ldflags-y += -T $(srctree)/$(src)/decompress_$(arch-y).lds
18 OBJECTS-$(CONFIG_ETRAX_ARCH_V32) = $(obj)/head_v32.o
19 OBJECTS-$(CONFIG_ETRAX_ARCH_V10) = $(obj)/head_v10.o
20 OBJECTS= $(OBJECTS-y) $(obj)/misc.o
21 OBJCOPYFLAGS = -O binary --remove-section=.bss
23 quiet_cmd_image = BUILD $@
24 cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
26 targets := vmlinux piggy.gz decompress.o decompress.bin
28 $(obj)/decompress.o: $(OBJECTS) FORCE
29 $(call if_changed,ld)
31 $(obj)/decompress.bin: $(obj)/decompress.o FORCE
32 $(call if_changed,objcopy)
34 $(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
35 $(call if_changed,image)
37 $(obj)/piggy.gz: $(obj)/../Image FORCE
38 $(call if_changed,gzip)