You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
686 B
27 lines
686 B
#
|
|
# arch/cris/arch-v10/boot/compressed/Makefile
|
|
#
|
|
|
|
asflags-y += $(LINUXINCLUDE)
|
|
ccflags-y += -O2 $(LINUXINCLUDE)
|
|
ldflags-y += -T $(srctree)/$(src)/decompress.lds
|
|
OBJECTS = $(obj)/head.o $(obj)/misc.o
|
|
OBJCOPYFLAGS = -O binary --remove-section=.bss
|
|
|
|
quiet_cmd_image = BUILD $@
|
|
cmd_image = cat $(obj)/decompress.bin $(obj)/piggy.gz > $@
|
|
|
|
targets := vmlinux piggy.gz decompress.o decompress.bin
|
|
|
|
$(obj)/decompress.o: $(OBJECTS) FORCE
|
|
$(call if_changed,ld)
|
|
|
|
$(obj)/decompress.bin: $(obj)/decompress.o FORCE
|
|
$(call if_changed,objcopy)
|
|
|
|
$(obj)/vmlinux: $(obj)/piggy.gz $(obj)/decompress.bin FORCE
|
|
$(call if_changed,image)
|
|
|
|
$(obj)/piggy.gz: $(obj)/../Image FORCE
|
|
$(call if_changed,gzip)
|
|
|
|
|