2005-07-27 18:44:44 +00:00
|
|
|
#
|
2008-01-30 11:52:51 +00:00
|
|
|
# arch/cris/arch-v32/boot/compressed/Makefile
|
2005-07-27 18:44:44 +00:00
|
|
|
#
|
|
|
|
|
2008-01-30 11:55:56 +00:00
|
|
|
asflags-y += -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
|
|
|
|
ccflags-y += -O2 -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
|
2008-06-30 18:38:06 +00:00
|
|
|
ldflags-y += -T $(srctree)/$(obj)/decompress.ld
|
2008-01-30 11:52:51 +00:00
|
|
|
OBJECTS = $(obj)/head.o $(obj)/misc.o
|
2005-07-27 18:44:44 +00:00
|
|
|
OBJCOPYFLAGS = -O binary --remove-section=.bss
|
|
|
|
|
2008-01-30 11:52:51 +00:00
|
|
|
quiet_cmd_image = BUILD $@
|
|
|
|
cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
|
2005-07-27 18:44:44 +00:00
|
|
|
|
2008-01-30 11:52:51 +00:00
|
|
|
targets := vmlinux piggy.gz decompress.o decompress.bin
|
2005-07-27 18:44:44 +00:00
|
|
|
|
2008-01-30 11:52:51 +00:00
|
|
|
$(obj)/decompress.o: $(OBJECTS) FORCE
|
|
|
|
$(call if_changed,ld)
|
2005-07-27 18:44:44 +00:00
|
|
|
|
2008-01-30 11:52:51 +00:00
|
|
|
$(obj)/decompress.bin: $(obj)/decompress.o FORCE
|
|
|
|
$(call if_changed,objcopy)
|
2005-07-27 18:44:44 +00:00
|
|
|
|
2008-01-30 11:52:51 +00:00
|
|
|
$(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
|
|
|
|
$(call if_changed,image)
|
2005-07-27 18:44:44 +00:00
|
|
|
|
2008-01-30 11:52:51 +00:00
|
|
|
$(obj)/piggy.gz: $(obj)/../Image FORCE
|
|
|
|
$(call if_changed,gzip)
|