Makefile (c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2) Makefile (19031275a5881233b4fc31b7dee68bf0b0758bbc)
1# SPDX-License-Identifier: GPL-2.0
2
3KASAN_SANITIZE := n
4
1# SPDX-License-Identifier: GPL-2.0
2
3KASAN_SANITIZE := n
4
5targets += trampoline.o purgatory.ro kexec-purgatory.c
5targets += trampoline_$(BITS).o purgatory.ro kexec-purgatory.c
6
7LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
8
6
7LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
8
9$(obj)/purgatory.ro: $(obj)/trampoline.o FORCE
9$(obj)/purgatory.ro: $(obj)/trampoline_$(BITS).o FORCE
10 $(call if_changed,ld)
11
12quiet_cmd_bin2c = BIN2C $@
13 cmd_bin2c = $(objtree)/scripts/bin2c kexec_purgatory < $< > $@
14
15$(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE
16 $(call if_changed,bin2c)
17
18obj-y += kexec-purgatory.o
10 $(call if_changed,ld)
11
12quiet_cmd_bin2c = BIN2C $@
13 cmd_bin2c = $(objtree)/scripts/bin2c kexec_purgatory < $< > $@
14
15$(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE
16 $(call if_changed,bin2c)
17
18obj-y += kexec-purgatory.o