From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilias Apalodimas Date: Fri, 12 Mar 2021 06:55:57 +0200 Subject: [PATCH 5/6] efidebug: add multiple device path instances on Boot#### In-Reply-To: <20210312044456.GC15112@laputa> References: <20210305222303.2866284-1-ilias.apalodimas@linaro.org> <20210305222303.2866284-5-ilias.apalodimas@linaro.org> <20210312044456.GC15112@laputa> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Akashi-san > > [...] > > +/** > > + * add_initrd_instance() - Append a device path to load_options pointing to an > > + * inirtd > > + if (!initrd_dp) { > > + printf("Cannot append media vendor device path path\n"); > > + goto out; > > + } > > + final_fp = efi_dp_concat(fp, initrd_dp); > > + *fp_size = efi_dp_size(fp) + efi_dp_size(initrd_dp) + > > + (2 * sizeof(struct efi_device_path)); > > + > > +out: > > + efi_free_pool(initrd_dp); > > + efi_free_pool(tmp_dp); > > + efi_free_pool(tmp_fp); > > + return final_fp ? final_fp : ERR_PTR(-EINVAL); > > +} > > + > > /** > > * do_efi_boot_add() - set UEFI load option > > * > > @@ -806,7 +868,9 @@ static int do_efi_show_tables(struct cmd_tbl *cmdtp, int flag, > > * > > * Implement efidebug "boot add" sub-command. Create or change UEFI load option. > > * > > - * efidebug boot add