blob: ac8793c13348f46cadaa50fae14a3772961d5ef9 [file] [log] [blame]
Thiago Jung Bauermann0d976312016-11-29 23:45:52 +11001targets += trampoline.o purgatory.ro kexec-purgatory.c
2
3LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
4
5$(obj)/purgatory.ro: $(obj)/trampoline.o FORCE
6 $(call if_changed,ld)
7
8CMD_BIN2C = $(objtree)/scripts/basic/bin2c
9quiet_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
15obj-y += kexec-purgatory.o