xref: /linux/arch/powerpc/purgatory/Makefile (revision c417fbce98722ad7e384caa8ba6f2e7c5f8672d9)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
20d976313SThiago Jung Bauermanntargets += trampoline.o purgatory.ro kexec-purgatory.c
30d976313SThiago Jung Bauermann
40d976313SThiago Jung BauermannLDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
50d976313SThiago Jung Bauermann
60d976313SThiago Jung Bauermann$(obj)/purgatory.ro: $(obj)/trampoline.o FORCE
70d976313SThiago Jung Bauermann		$(call if_changed,ld)
80d976313SThiago Jung Bauermann
90d976313SThiago Jung Bauermannquiet_cmd_bin2c = BIN2C   $@
10*c417fbceSMasahiro Yamada      cmd_bin2c = $(objtree)/scripts/bin2c kexec_purgatory < $< > $@
110d976313SThiago Jung Bauermann
120d976313SThiago Jung Bauermann$(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE
130d976313SThiago Jung Bauermann	$(call if_changed,bin2c)
140d976313SThiago Jung Bauermann
150d976313SThiago Jung Bauermannobj-y	+= kexec-purgatory.o
16