From: Alexander Graf Date: Sun, 23 Dec 2018 03:05:42 +0100 Subject: [U-Boot] [PATCH 2/5] efi_loader: bootmgr: allow for running a given load option In-Reply-To: <20181218050257.20142-3-takahiro.akashi@linaro.org> References: <20181218050257.20142-1-takahiro.akashi@linaro.org> <20181218050257.20142-3-takahiro.akashi@linaro.org> Message-ID: <1b90d5ae-82cd-2462-7fc0-941c55d96f62@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 18.12.18 06:02, AKASHI Takahiro wrote: > With an extra argument, efi_bootmgr_load() can now load an efi binary > based on a "BootXXXX" variable specified. > > Signed-off-by: AKASHI Takahiro > --- > cmd/bootefi.c | 2 +- > include/efi_loader.h | 3 ++- > lib/efi_loader/efi_bootmgr.c | 9 ++++++++- > 3 files changed, 11 insertions(+), 3 deletions(-) > > diff --git a/cmd/bootefi.c b/cmd/bootefi.c > index 7012d72ab50d..3ebae1cdad08 100644 > --- a/cmd/bootefi.c > +++ b/cmd/bootefi.c > @@ -452,7 +452,7 @@ static int do_bootefi_bootmgr_exec(void) > void *addr; > efi_status_t r; > > - addr = efi_bootmgr_load(&device_path, &file_path); > + addr = efi_bootmgr_load(-1, &device_path, &file_path); Please make the -1 a special #define that is more verbose to readers. Something like EFI_BOOTMGR_DEFAULT_ORDER. Alex