From mboxrd@z Thu Jan 1 00:00:00 1970 From: AKASHI Takahiro Date: Tue, 25 Dec 2018 18:44:55 +0900 Subject: [U-Boot] [PATCH 2/5] efi_loader: bootmgr: allow for running a given load option In-Reply-To: <1b90d5ae-82cd-2462-7fc0-941c55d96f62@suse.de> References: <20181218050257.20142-1-takahiro.akashi@linaro.org> <20181218050257.20142-3-takahiro.akashi@linaro.org> <1b90d5ae-82cd-2462-7fc0-941c55d96f62@suse.de> Message-ID: <20181225094454.GF14405@linaro.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Dec 23, 2018 at 03:05:42AM +0100, Alexander Graf wrote: > > > 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. OK Add it to efi_loader.h -Takahiro Akashi > > Alex