]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[cpio] Split out bzImage initrd CPIO header construction
authorMichael Brown <mcb30@ipxe.org>
Mon, 17 May 2021 13:57:48 +0000 (14:57 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 21 May 2021 14:19:38 +0000 (15:19 +0100)
commitbfca3db41e9af78e56e7a9b7f30121df83b6af0a
tree4f75eef31776bcc8d2918b9b2e92e90560859794
parentfc8bd4ba1a65db9d9091705f30fec19ded75530c
[cpio] Split out bzImage initrd CPIO header construction

iPXE will construct CPIO headers for images that have a non-empty
command line, thereby allowing raw images (without CPIO headers) to be
injected into a dynamically constructed initrd.  This feature is
currently implemented within the BIOS-only bzImage format support.

Split out the CPIO header construction logic to allow for reuse in
other contexts such as in a UEFI build.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/x86/image/bzimage.c
src/arch/x86/image/initrd.c
src/arch/x86/include/initrd.h
src/core/cpio.c
src/include/ipxe/cpio.h