108 if ( download && name_uri &&
110 &
image ) ) != 0 ) ) {
116 opts.allow_sbat ) ) != 0 )
#define NULL
NULL pointer (VOID *)
struct arbelprm_rc_send_wqe rc
static union @024010030001061367220137227263210031030210157031 opts
"cert<xxx>" option list
#define COMMAND(name, exec)
static int efi_can_load(struct image *image)
Check if EFI image can be loaded directly.
uint32_t kernel
Kernel version (numeric)
int optind
Current option index.
Parse command-line options.
@ required_argument
Option requires an argument.
@ no_argument
Option does not take an argument.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
struct image * find_image_tag(struct image_tag *tag)
Find image by tag.
struct image_tag selected_image
int imgacquire(const char *name_uri, unsigned long timeout, struct image **image)
Acquire an image.
int parse_flag(char *text __unused, int *flag)
Parse flag.
int parse_timeout(char *text, unsigned long *value)
Parse timeout value (in ms)
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
Command line option parsing.
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
static struct command_descriptor shim_cmd
"shim" command descriptor
static int shim_exec(int argc, char **argv)
The "shim" command.
static struct option_descriptor shim_opts[]
"shim" option list
int shim(struct image *image, int require_loader, int allow_pxe, int allow_sbat)
Set shim image.
A command-line option descriptor.
int allow_sbat
Allow SBAT variable access.
int allow_pxe
Allow PXE base code protocol.
unsigned long timeout
Download timeout.
int require_loader
Require third party loader.