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-02 06:27:59 +00:00
|
|
|
CC = gcc-cris -mlinux -march=v32 $(LINUXINCLUDE)
|
2008-01-30 11:52:51 +00:00
|
|
|
AFLAGS += -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
|
|
|
|
KBUILD_CFLAGS += -O2 -I $(srctree)/include/asm/mach/ -I $(srctree)/include/asm/arch
|
2005-07-27 18:44:44 +00:00
|
|
|
LD = gcc-cris -mlinux -march=v32 -nostdlib
|
2008-01-30 11:52:51 +00:00
|
|
|
LDFLAGS = -T $(obj)/decompress.ld
|
|
|
|
obj-y = head.o misc.o
|
|
|
|
OBJECTS = $(obj)/head.o $(obj)/misc.o
|
2005-07-27 18:44:44 +00:00
|
|
|
OBJCOPY = objcopy-cris
|
|
|
|
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)
|