diff options
author | Li Zhengyu <lizhengyu3@huawei.com> | 2022-04-08 18:09:13 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-05-19 12:18:59 -0700 |
commit | 736e30af583fb6e0e2b8211b894ff99dea0f1ee7 (patch) | |
tree | 5c1b4d2f0a33ab0d762447b2ce7375c5eca194ec /arch/riscv/Kbuild | |
parent | 8acea455fafaf2620b247de6c00774828b618a82 (diff) |
RISC-V: Add purgatory
This patch adds purgatory, the name and concept have been taken
from kexec-tools. Purgatory runs between two kernels, and do
verify sha256 hash to ensure the kernel to jump to is fine and
has not been corrupted after loading. Makefile is modified based
on x86 platform.
Signed-off-by: Li Zhengyu <lizhengyu3@huawei.com>
Link: https://lore.kernel.org/r/20220408100914.150110-6-lizhengyu3@huawei.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/Kbuild')
-rw-r--r-- | arch/riscv/Kbuild | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/Kbuild b/arch/riscv/Kbuild index fb3397223d52..f562c7343fda 100644 --- a/arch/riscv/Kbuild +++ b/arch/riscv/Kbuild @@ -3,5 +3,7 @@ obj-y += kernel/ mm/ net/ obj-$(CONFIG_BUILTIN_DTB) += boot/dts/ +obj-$(CONFIG_ARCH_HAS_KEXEC_PURGATORY) += purgatory/ + # for cleaning subdir- += boot |