Linux 5.7.6
[linux/fpc-iii.git] / arch / nios2 / boot / compressed / Makefile
blob791e4309250ab644ab2a3a01e856bfd5909fb780
1 # SPDX-License-Identifier: GPL-2.0
3 # create a compressed vmlinux image from the original vmlinux
6 targets := vmlinux head.o misc.o piggy.o vmlinux.lds
7 asflags-y :=
9 OBJECTS = $(obj)/head.o $(obj)/misc.o
11 LDFLAGS_vmlinux := -T
13 $(obj)/vmlinux: $(obj)/vmlinux.lds $(OBJECTS) $(obj)/piggy.o FORCE
14 $(call if_changed,ld)
16 LDFLAGS_piggy.o := -r --format binary --oformat elf32-littlenios2 -T
18 $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/../vmlinux.gz FORCE
19 $(call if_changed,ld)