1 # SPDX-License-Identifier: GPL-2.0
5 targets
+= trampoline.o purgatory.ro kexec-purgatory.c
7 LDFLAGS_purgatory.ro
:= -e purgatory_start
-r
--no-undefined
9 $(obj
)/purgatory.ro
: $(obj
)/trampoline.o FORCE
12 quiet_cmd_bin2c
= BIN2C
$@
13 cmd_bin2c
= $(objtree
)/scripts
/bin2c kexec_purgatory
< $< > $@
15 $(obj
)/kexec-purgatory.c
: $(obj
)/purgatory.ro FORCE
16 $(call if_changed
,bin2c
)
18 obj-y
+= kexec-purgatory.o