]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
0d976313 TJB |
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 |