Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / mn10300 / boot / compressed / Makefile
blob9b9a48fc8e532d9d1234dfda48a46eaf14f959cb
1 # SPDX-License-Identifier: GPL-2.0
3 # Create a compressed vmlinux image from the original vmlinux
6 targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o
8 LDFLAGS_vmlinux := -Ttext $(CONFIG_KERNEL_ZIMAGE_BASE_ADDRESS) -e startup_32
10 $(obj)/vmlinux: $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o FORCE
11 $(call if_changed,ld)
13 $(obj)/vmlinux.bin: vmlinux FORCE
14 $(call if_changed,objcopy)
16 $(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
17 $(call if_changed,gzip)
19 LDFLAGS_piggy.o := -r --format binary --oformat elf32-am33lin -T
21 $(obj)/piggy.o: $(obj)/vmlinux.lds $(obj)/vmlinux.bin.gz FORCE
22 $(call if_changed,ld)