blob: 348f595810523f1febe4225ebb3604fd75b3263e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Christophe Leroyf0720152019-04-26 16:23:33 +00002
3KASAN_SANITIZE := n
4
Hari Bathini19031272020-07-29 17:09:41 +05305targets += trampoline_$(BITS).o purgatory.ro kexec-purgatory.c
Thiago Jung Bauermann0d976312016-11-29 23:45:52 +11006
7LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
8
Hari Bathini19031272020-07-29 17:09:41 +05309$(obj)/purgatory.ro: $(obj)/trampoline_$(BITS).o FORCE
Thiago Jung Bauermann0d976312016-11-29 23:45:52 +110010 $(call if_changed,ld)
11
Thiago Jung Bauermann0d976312016-11-29 23:45:52 +110012quiet_cmd_bin2c = BIN2C $@
Masahiro Yamadac417fbc2018-06-26 01:40:23 +090013 cmd_bin2c = $(objtree)/scripts/bin2c kexec_purgatory < $< > $@
Thiago Jung Bauermann0d976312016-11-29 23:45:52 +110014
15$(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE
16 $(call if_changed,bin2c)
17
18obj-y += kexec-purgatory.o