diff options
| author | Michael Brown | 2025-04-01 17:53:02 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-04-01 17:55:28 +0200 |
| commit | 7e64e9b6703e6dd363c063d545a5fe63bbc70011 (patch) | |
| tree | 4b07ed4f9b9bfb3c18a86495bbcfbafb1ddf93bd /src/image | |
| parent | [fdt] Identify free space (if any) at end of parsed tree (diff) | |
| download | ipxe-7e64e9b6703e6dd363c063d545a5fe63bbc70011.tar.gz ipxe-7e64e9b6703e6dd363c063d545a5fe63bbc70011.tar.xz ipxe-7e64e9b6703e6dd363c063d545a5fe63bbc70011.zip | |
[fdt] Populate boot arguments in constructed device tree
When creating a device tree to pass to a booted operating system,
ensure that the "chosen" node exists, and populate the "bootargs"
property with the image command line.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image')
| -rw-r--r-- | src/image/efi_image.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/image/efi_image.c b/src/image/efi_image.c index 273f8e8fd..c87196487 100644 --- a/src/image/efi_image.c +++ b/src/image/efi_image.c @@ -126,9 +126,10 @@ static wchar_t * efi_image_cmdline ( struct image *image ) { /** * Install EFI Flattened Device Tree table (when no FDT support is present) * + * @v cmdline Command line, or NULL * @ret rc Return status code */ -__weak int efi_fdt_install ( void ) { +__weak int efi_fdt_install ( const char *cmdline __unused ) { return 0; } @@ -209,7 +210,7 @@ static int efi_image_exec ( struct image *image ) { } /* Install Flattened Device Tree table */ - if ( ( rc = efi_fdt_install() ) != 0 ) { + if ( ( rc = efi_fdt_install ( image->cmdline ) ) != 0 ) { DBGC ( image, "EFIIMAGE %s could not install FDT: %s\n", image->name, strerror ( rc ) ); goto err_fdt_install; |
