2005-04-16 22:20:36 +00:00
|
|
|
#
|
2007-11-30 15:10:30 +00:00
|
|
|
# arch/cris/arch-v10/boot/compressed/Makefile
|
2005-04-16 22:20:36 +00:00
|
|
|
#
|
|
|
|
|
2008-06-29 21:15:19 +00:00
|
|
|
asflags-y += $(LINUXINCLUDE)
|
|
|
|
ccflags-y += -O2 $(LINUXINCLUDE)
|
2008-07-14 06:59:48 +00:00
|
|
|
ldflags-y += -T $(srctree)/$(src)/decompress.lds
|
2007-11-30 15:10:30 +00:00
|
|
|
OBJECTS = $(obj)/head.o $(obj)/misc.o
|
2005-04-16 22:20:36 +00:00
|
|
|
OBJCOPYFLAGS = -O binary --remove-section=.bss
|
|
|
|
|
2007-11-30 15:10:30 +00:00
|
|
|
quiet_cmd_image = BUILD $@
|
|
|
|
cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-11-30 15:10:30 +00:00
|
|
|
targets := vmlinux piggy.gz decompress.o decompress.bin
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-11-30 15:10:30 +00:00
|
|
|
$(obj)/decompress.o: $(OBJECTS) FORCE
|
|
|
|
$(call if_changed,ld)
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-11-30 15:10:30 +00:00
|
|
|
$(obj)/decompress.bin: $(obj)/decompress.o FORCE
|
|
|
|
$(call if_changed,objcopy)
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-11-30 15:10:30 +00:00
|
|
|
$(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
|
|
|
|
$(call if_changed,image)
|
2005-04-16 22:20:36 +00:00
|
|
|
|
2007-11-30 15:10:30 +00:00
|
|
|
$(obj)/piggy.gz: $(obj)/../Image FORCE
|
|
|
|
$(call if_changed,gzip)
|
2005-04-16 22:20:36 +00:00
|
|
|
|