Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Thiago Jung Bauermann | 0d97631 | 2016-11-29 23:45:52 +1100 | [diff] [blame] | 2 | targets += trampoline.o purgatory.ro kexec-purgatory.c |
| 3 | |
| 4 | LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined |
| 5 | |
| 6 | $(obj)/purgatory.ro: $(obj)/trampoline.o FORCE |
| 7 | $(call if_changed,ld) |
| 8 | |
| 9 | CMD_BIN2C = $(objtree)/scripts/basic/bin2c |
| 10 | quiet_cmd_bin2c = BIN2C $@ |
| 11 | cmd_bin2c = $(CMD_BIN2C) kexec_purgatory < $< > $@ |
| 12 | |
| 13 | $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE |
| 14 | $(call if_changed,bin2c) |
| 15 | |
| 16 | obj-y += kexec-purgatory.o |