Makefile 674 字节
Newer Older
L
Linus Torvalds 已提交
1
#
2
# arch/cris/arch-v10/boot/compressed/Makefile
L
Linus Torvalds 已提交
3 4
#

5 6
asflags-y += $(LINUXINCLUDE)
ccflags-y += -O2 $(LINUXINCLUDE)
7
ldflags-y += -T $(obj)/decompress.ld
8
OBJECTS = $(obj)/head.o $(obj)/misc.o
L
Linus Torvalds 已提交
9 10
OBJCOPYFLAGS = -O binary --remove-section=.bss

11 12
quiet_cmd_image = BUILD   $@
cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
L
Linus Torvalds 已提交
13

14
targets := vmlinux piggy.gz decompress.o decompress.bin
L
Linus Torvalds 已提交
15

16 17
$(obj)/decompress.o: $(OBJECTS) FORCE
	$(call if_changed,ld)
L
Linus Torvalds 已提交
18

19 20
$(obj)/decompress.bin: $(obj)/decompress.o FORCE
	$(call if_changed,objcopy)
L
Linus Torvalds 已提交
21

22 23
$(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
	$(call if_changed,image)
L
Linus Torvalds 已提交
24

25 26
$(obj)/piggy.gz: $(obj)/../Image FORCE
	$(call if_changed,gzip)
L
Linus Torvalds 已提交
27