summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/purgatory/Makefile
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@linux.vnet.ibm.com>2016-11-29 23:45:52 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2016-11-30 23:15:26 +1100
commit0d97631392c24a9573dafb7b6962cc40b5ef2281 (patch)
tree87c59e7698605f38fcca94be14de2d5590b75160 /arch/powerpc/purgatory/Makefile
parenta0458284f0625ade5eff2118bab89b2d4bbacc3e (diff)
downloadlinux-stable-0d97631392c24a9573dafb7b6962cc40b5ef2281.tar.gz
linux-stable-0d97631392c24a9573dafb7b6962cc40b5ef2281.tar.bz2
linux-stable-0d97631392c24a9573dafb7b6962cc40b5ef2281.zip
powerpc: Add purgatory for kexec_file_load() implementation.
This purgatory implementation is based on the versions from kexec-tools and kexec-lite, with additional changes. Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/purgatory/Makefile')
-rw-r--r--arch/powerpc/purgatory/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/powerpc/purgatory/Makefile b/arch/powerpc/purgatory/Makefile
new file mode 100644
index 000000000000..ac8793c13348
--- /dev/null
+++ b/arch/powerpc/purgatory/Makefile
@@ -0,0 +1,15 @@
+targets += trampoline.o purgatory.ro kexec-purgatory.c
+
+LDFLAGS_purgatory.ro := -e purgatory_start -r --no-undefined
+
+$(obj)/purgatory.ro: $(obj)/trampoline.o FORCE
+ $(call if_changed,ld)
+
+CMD_BIN2C = $(objtree)/scripts/basic/bin2c
+quiet_cmd_bin2c = BIN2C $@
+ cmd_bin2c = $(CMD_BIN2C) kexec_purgatory < $< > $@
+
+$(obj)/kexec-purgatory.c: $(obj)/purgatory.ro FORCE
+ $(call if_changed,bin2c)
+
+obj-y += kexec-purgatory.o