]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/mn10300/boot/compressed/Makefile
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ac97-mfd', 'asoc/topic...
[mirror_ubuntu-focal-kernel.git] / arch / mn10300 / boot / compressed / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
b920de1b
DH
2#
3# Create a compressed vmlinux image from the original vmlinux
4#
5
6targets := vmlinux vmlinux.bin vmlinux.bin.gz head.o misc.o piggy.o
7
8LDFLAGS_vmlinux := -Ttext $(CONFIG_KERNEL_ZIMAGE_BASE_ADDRESS) -e startup_32
9
10$(obj)/vmlinux: $(obj)/head.o $(obj)/misc.o $(obj)/piggy.o FORCE
11 $(call if_changed,ld)
b920de1b
DH
12
13$(obj)/vmlinux.bin: vmlinux FORCE
14 $(call if_changed,objcopy)
15
16$(obj)/vmlinux.bin.gz: $(obj)/vmlinux.bin FORCE
17 $(call if_changed,gzip)
18
19LDFLAGS_piggy.o := -r --format binary --oformat elf32-am33lin -T
20
21$(obj)/piggy.o: $(obj)/vmlinux.lds $(obj)/vmlinux.bin.gz FORCE
22 $(call if_changed,ld)