Skip to content

Commit

Permalink
kexec: add KEXEC_ELF
Browse files Browse the repository at this point in the history
Right now powerpc provides an implementation to read elf files
with the kexec_file_load() syscall. Make that available as a public
kexec interface so it can be re-used on other architectures.

Signed-off-by: Sven Schnelle <[email protected]>
Reviewed-by: Thiago Jung Bauermann <[email protected]>
Signed-off-by: Helge Deller <[email protected]>
  • Loading branch information
svenschnelle authored and hdeller committed Sep 6, 2019
1 parent 544f448 commit 175fca3
Show file tree
Hide file tree
Showing 6 changed files with 583 additions and 540 deletions.
3 changes: 3 additions & 0 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ config KEXEC_CORE
select CRASH_CORE
bool

config KEXEC_ELF
bool

config HAVE_IMA_KEXEC
bool

Expand Down
1 change: 1 addition & 0 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ config KEXEC_FILE
select KEXEC_CORE
select HAVE_IMA_KEXEC
select BUILD_BIN2C
select KEXEC_ELF
depends on PPC64
depends on CRYPTO=y
depends on CRYPTO_SHA256=y
Expand Down
Loading

0 comments on commit 175fca3

Please sign in to comment.