From 9bc559850c53eb630f9bb1089c98bae1d776d3d8 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 21 May 2025 14:26:56 +0100 Subject: [fdt] Allow an initrd to be specified when creating a device tree Allow an initrd location to be specified in our constructed device tree via the "linux,initrd-start" and "linux,initrd-end" properties. Signed-off-by: Michael Brown --- src/image/lkrn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/image') diff --git a/src/image/lkrn.c b/src/image/lkrn.c index f8929f3b3..4f04c3ff6 100644 --- a/src/image/lkrn.c +++ b/src/image/lkrn.c @@ -153,7 +153,7 @@ static int lkrn_fdt ( struct image *image, struct lkrn_context *ctx ) { int rc; /* Build device tree (which may change system memory map) */ - if ( ( rc = fdt_create ( &fdt, image->cmdline ) ) != 0 ) + if ( ( rc = fdt_create ( &fdt, image->cmdline, 0, 0 ) ) != 0 ) goto err_create; len = be32_to_cpu ( fdt->totalsize ); -- cgit v1.2.3-55-g7522