Makefile 779 字节
Newer Older
1
#
2
# arch/cris/arch-v32/boot/compressed/Makefile
3 4
#

5 6
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
7
ldflags-y += -T $(srctree)/$(src)/decompress.lds
8
OBJECTS = $(obj)/head.o $(obj)/misc.o
9 10
OBJCOPYFLAGS = -O binary --remove-section=.bss

11 12
quiet_cmd_image = BUILD   $@
cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
13

14
targets := vmlinux piggy.gz decompress.o decompress.bin
15

16 17
$(obj)/decompress.o: $(OBJECTS) FORCE
	$(call if_changed,ld)
18

19 20
$(obj)/decompress.bin: $(obj)/decompress.o FORCE
	$(call if_changed,objcopy)
21

22 23
$(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
	$(call if_changed,image)
24

25 26
$(obj)/piggy.gz: $(obj)/../Image FORCE
	$(call if_changed,gzip)