xref: /linux/arch/powerpc/purgatory/Makefile (revision f072015c7b742c42aa5649d22f43163cd0eb7024)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2*f072015cSChristophe Leroy
3*f072015cSChristophe LeroyKASAN_SANITIZE := n
4*f072015cSChristophe Leroy
50d976313SThiago Jung Bauermanntargets += trampoline.o purgatory.ro kexec-purgatory.c
60d976313SThiago Jung Bauermann
70d976313SThiago Jung BauermannLDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
80d976313SThiago Jung Bauermann
90d976313SThiago Jung Bauermann$(obj)/purgatory.ro: $(obj)/trampoline.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