xref: /linux/arch/powerpc/purgatory/Makefile (revision 9257971377e2fe6e82f41f688651a82a2f160a88)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2f072015cSChristophe Leroy
3f072015cSChristophe LeroyKASAN_SANITIZE := n
4f072015cSChristophe Leroy
5*92579713SMasahiro Yamadatargets += trampoline_$(BITS).o purgatory.ro
60d976313SThiago Jung Bauermann
70d976313SThiago Jung BauermannLDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
80d976313SThiago Jung Bauermann
919031275SHari Bathini$(obj)/purgatory.ro: $(obj)/trampoline_$(BITS).o FORCE
100d976313SThiago Jung Bauermann		$(call if_changed,ld)
110d976313SThiago Jung Bauermann
12*92579713SMasahiro Yamada$(obj)/kexec-purgatory.o: $(obj)/purgatory.ro
130d976313SThiago Jung Bauermann
140d976313SThiago Jung Bauermannobj-y	+= kexec-purgatory.o
15