xref: /linux/arch/powerpc/purgatory/Makefile (revision b24413180f5600bcb3bb70fbed5cf186b60864bd)
1*b2441318SGreg 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 BauermannCMD_BIN2C = $(objtree)/scripts/basic/bin2c
100d976313SThiago Jung Bauermannquiet_cmd_bin2c = BIN2C   $@
110d976313SThiago Jung Bauermann      cmd_bin2c = $(CMD_BIN2C) kexec_purgatory < $< > $@
120d976313SThiago Jung Bauermann
130d976313SThiago Jung Bauermann$(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE
140d976313SThiago Jung Bauermann	$(call if_changed,bin2c)
150d976313SThiago Jung Bauermann
160d976313SThiago Jung Bauermannobj-y	+= kexec-purgatory.o
17