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