1# 2# create a compressed vmlinux image from the original vmlinux 3# 4 5targets := vmlinux head.o misc.o piggy.o vmlinux.lds 6asflags-y := 7 8OBJECTS = $(obj)/head.o $(obj)/misc.o 9 10LDFLAGS_vmlinux := -T 11 12$(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE 13 $(call if_changed,ld) 14 @: 15 16LDFLAGS_piggy.o := -r --format binary --oformat elf32-littlenios2 -T 17 18$(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/../vmlinux.gz FORCE 19 $(call if_changed,ld) 20