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 | |
Thiago Jung Bauermann | 0d97631 | 2016-11-29 23:45:52 +1100 | [diff] [blame] | 9 | quiet_cmd_bin2c = BIN2C $@ |
Masahiro Yamada | c417fbc | 2018-06-26 01:40:23 +0900 | [diff] [blame] | 10 | cmd_bin2c = $(objtree)/scripts/bin2c kexec_purgatory < $< > $@ |
Thiago Jung Bauermann | 0d97631 | 2016-11-29 23:45:52 +1100 | [diff] [blame] | 11 | |
| 12 | $(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE |
| 13 | $(call if_changed,bin2c) |
| 14 | |
| 15 | obj-y += kexec-purgatory.o |