diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-05-17 14:57:48 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-05-21 15:19:38 +0100 |
commit | bfca3db41e9af78e56e7a9b7f30121df83b6af0a (patch) | |
tree | 4f75eef31776bcc8d2918b9b2e92e90560859794 /src/arch/x86/image/initrd.c | |
parent | fc8bd4ba1a65db9d9091705f30fec19ded75530c (diff) | |
download | ipxe-bfca3db41e9af78e56e7a9b7f30121df83b6af0a.zip ipxe-bfca3db41e9af78e56e7a9b7f30121df83b6af0a.tar.gz ipxe-bfca3db41e9af78e56e7a9b7f30121df83b6af0a.tar.bz2 |
[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>
Diffstat (limited to 'src/arch/x86/image/initrd.c')
-rw-r--r-- | src/arch/x86/image/initrd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/x86/image/initrd.c b/src/arch/x86/image/initrd.c index 49b959a..d7b1f57 100644 --- a/src/arch/x86/image/initrd.c +++ b/src/arch/x86/image/initrd.c @@ -29,6 +29,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #include <ipxe/uaccess.h> #include <ipxe/init.h> #include <ipxe/memblock.h> +#include <ipxe/cpio.h> /** @file * |