Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Christophe Leroy | f072015 | 2019-04-26 16:23:33 +0000 | [diff] [blame] | 2 | |
| 3 | KASAN_SANITIZE := n |
| 4 | |
Hari Bathini | 1903127 | 2020-07-29 17:09:41 +0530 | [diff] [blame] | 5 | targets += trampoline_$(BITS).o purgatory.ro kexec-purgatory.c |
Thiago Jung Bauermann | 0d97631 | 2016-11-29 23:45:52 +1100 | [diff] [blame] | 6 | |
| 7 | LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined |
| 8 | |
Hari Bathini | 1903127 | 2020-07-29 17:09:41 +0530 | [diff] [blame] | 9 | $(obj)/purgatory.ro: $(obj)/trampoline_$(BITS).o FORCE |
Thiago Jung Bauermann | 0d97631 | 2016-11-29 23:45:52 +1100 | [diff] [blame] | 10 | $(call if_changed,ld) |
| 11 | |
Thiago Jung Bauermann | 0d97631 | 2016-11-29 23:45:52 +1100 | [diff] [blame] | 12 | quiet_cmd_bin2c = BIN2C $@ |
Masahiro Yamada | c417fbc | 2018-06-26 01:40:23 +0900 | [diff] [blame] | 13 | cmd_bin2c = $(objtree)/scripts/bin2c kexec_purgatory < $< > $@ |
Thiago Jung Bauermann | 0d97631 | 2016-11-29 23:45:52 +1100 | [diff] [blame] | 14 | |
| 15 | $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE |
| 16 | $(call if_changed,bin2c) |
| 17 | |
| 18 | obj-y += kexec-purgatory.o |