2 # Create a compressed vmlinux image from the original vmlinux
5 targets
:= vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o
7 LDFLAGS_vmlinux
:= -Ttext
$(CONFIG_KERNEL_ZIMAGE_BASE_ADDRESS
) -e startup_32
9 $(obj
)/vmlinux
: $(obj
)/head.o
$(obj
)/misc.o
$(obj
)/piggy.o FORCE
12 $(obj
)/vmlinux.bin
: vmlinux FORCE
13 $(call if_changed
,objcopy
)
15 $(obj
)/vmlinux.bin.gz
: $(obj
)/vmlinux.bin FORCE
16 $(call if_changed
,gzip
)
18 LDFLAGS_piggy.o
:= -r
--format binary
--oformat elf32-am33lin
-T
20 $(obj
)/piggy.o
: $(obj
)/vmlinux.lds
$(obj
)/vmlinux.bin.gz FORCE