xref: /linux/arch/powerpc/purgatory/Makefile (revision 19031275a5881233b4fc31b7dee68bf0b0758bbc)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2f072015cSChristophe Leroy
3f072015cSChristophe LeroyKASAN_SANITIZE := n
4f072015cSChristophe Leroy
5*19031275SHari Bathinitargets += trampoline_$(BITS).o purgatory.ro kexec-purgatory.c
60d976313SThiago Jung Bauermann
70d976313SThiago Jung BauermannLDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
80d976313SThiago Jung Bauermann
9*19031275SHari Bathini$(obj)/purgatory.ro: $(obj)/trampoline_$(BITS).o FORCE
100d976313SThiago Jung Bauermann		$(call if_changed,ld)
110d976313SThiago Jung Bauermann
120d976313SThiago Jung Bauermannquiet_cmd_bin2c = BIN2C   $@
13c417fbceSMasahiro Yamada      cmd_bin2c = $(objtree)/scripts/bin2c kexec_purgatory < $< > $@
140d976313SThiago Jung Bauermann
150d976313SThiago Jung Bauermann$(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE
160d976313SThiago Jung Bauermann	$(call if_changed,bin2c)
170d976313SThiago Jung Bauermann
180d976313SThiago Jung Bauermannobj-y	+= kexec-purgatory.o
19