[PATCH 2/3] kexec: Introduce UKI image parser

Simon Horman horms at kernel.org
Fri Oct 11 01:44:06 PDT 2024


On Tue, Oct 08, 2024 at 07:54:02PM +0800, Pingfan Liu wrote:
> A UKI image is a PE file that consists of several sections, typically
> including: .text, .data, .linux, .initrd, .cmdline, and others.
> 
> The kernel image is stored in the .linux section, which is one of the
> formats currently recognized by kexec-tools. Therefore, the UKI parser
> can be used to strip away the UKI layer, allowing the other parser to
> process the kernel image.
> 
> Signed-off-by: Pingfan Liu <piliu at redhat.com>
> Cc: Simon Horman <horms at kernel.org>
> Cc: Eric Biederman <ebiederm at xmission.com>
> Cc: Baoquan He <bhe at redhat.com>
> Cc: Dave Young <dyoung at redhat.com>
> Cc: kexec at lists.infradead.org
> ---
>  include/pe.h      | 104 +++++++++++++++++++++++++++++++++++++++
>  kexec/Makefile    |   1 +
>  kexec/kexec-uki.c | 122 ++++++++++++++++++++++++++++++++++++++++++++++
>  kexec/kexec.h     |   4 ++
>  4 files changed, 231 insertions(+)
>  create mode 100644 include/pe.h
>  create mode 100644 kexec/kexec-uki.c

Hi Pingfan Liu,

I think you need to squash the following into this patch
so that pe.h is included in distribution tarballs.

You should be able to see the problem by running: make distcheck.

diff --git a/include/Makefile b/include/Makefile
index cd88a26b1476..6a3e8541c36d 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -8,6 +8,7 @@ dist += include/Makefile		\
 	include/x86/mb_header.h		\
 	include/x86/multiboot2.h	\
 	include/elf.h			\
+	include/pe.h			\
 	include/image.h			\
 	include/unused.h		\
 	include/boot/linuxbios_tables.h	\



More information about the kexec mailing list