2 # arch/cris/boot/compressed/Makefile
5 # asflags-$(CONFIG_ETRAX_ARCH_V32) += -I$(srctree)/include/asm/mach \
6 # -I$(srctree)/include/asm/arch
7 # ccflags-$(CONFIG_ETRAX_ARCH_V32) += -O2 -I$(srctree)/include/asm/mach
8 # -I$(srctree)/include/asm/arch
10 arch-
$(CONFIG_ETRAX_ARCH_V10
) = v10
11 arch-
$(CONFIG_ETRAX_ARCH_V32
) = v32
13 ldflags-y
+= -T
$(srctree
)/$(src
)/decompress_
$(arch-y
).lds
15 OBJECTS-
$(CONFIG_ETRAX_ARCH_V32
) = $(obj
)/head_v32.o
16 OBJECTS-
$(CONFIG_ETRAX_ARCH_V10
) = $(obj
)/head_v10.o
17 OBJECTS
= $(OBJECTS-y
) $(obj
)/misc.o
18 OBJCOPYFLAGS
= -O binary
--remove-section
=.bss
20 quiet_cmd_image
= BUILD
$@
21 cmd_image
= cat
$(obj
)/decompress.bin
$(obj
)/piggy.gz
> $@
23 targets
:= vmlinux piggy.gz decompress.o decompress.bin
25 $(obj
)/decompress.o
: $(OBJECTS
) FORCE
28 $(obj
)/decompress.bin
: $(obj
)/decompress.o FORCE
29 $(call if_changed
,objcopy
)
31 $(obj
)/vmlinux
: $(obj
)/piggy.gz
$(obj
)/decompress.bin FORCE
32 $(call if_changed
,image
)
34 $(obj
)/piggy.gz
: $(obj
)/..
/Image FORCE
35 $(call if_changed
,gzip
)