2 # arch/cris/arch-v10/boot/compressed/Makefile
5 CC
= gcc-cris
-melf
$(LINUXINCLUDE
)
8 ldflags-y
+= -T
$(obj
)/decompress.
ld
9 OBJECTS
= $(obj
)/head.o
$(obj
)/misc.o
10 OBJCOPY
= objcopy-cris
11 OBJCOPYFLAGS
= -O binary
--remove-section
=.bss
13 quiet_cmd_image
= BUILD
$@
14 cmd_image
= cat
$(obj
)/decompress.bin
$(obj
)/piggy.gz
> $@
16 targets
:= vmlinux piggy.gz decompress.o decompress.bin
18 $(obj
)/decompress.o
: $(OBJECTS
) FORCE
21 $(obj
)/decompress.bin
: $(obj
)/decompress.o FORCE
22 $(call if_changed
,objcopy
)
24 $(obj
)/head.o
: $(obj
)/head.S .config
25 @
$(CC
) -D__ASSEMBLY__
-traditional
-c
$< -o
$@
27 $(obj
)/misc.o
: $(obj
)/misc.c .config
28 @
$(CC
) -D__KERNEL__
-c
$< -o
$@
30 $(obj
)/vmlinux
: $(obj
)/piggy.gz
$(obj
)/decompress.bin FORCE
31 $(call if_changed
,image
)
33 $(obj
)/piggy.gz
: $(obj
)/..
/Image FORCE
34 $(call if_changed
,gzip
)