107 if ( download && name_uri &&
109 &
image ) ) != 0 ) ) {
115 opts.allow_sbat ) ) != 0 )
struct image_tag selected_image
struct arbelprm_rc_send_wqe rc
int optind
Current option index.
static int shim_exec(int argc, char **argv)
The "shim" command.
int parse_timeout(char *text, unsigned long *value)
Parse timeout value (in ms)
static struct command_descriptor shim_cmd
"shim" command descriptor
int parse_options(int argc, char **argv, struct command_descriptor *cmd, void *opts)
Parse command-line options.
struct image * find_image_tag(struct image_tag *tag)
Find image by tag.
unsigned long timeout
Download timeout.
Parse command-line options.
static struct option_descriptor shim_opts[]
"shim" option list
uint32_t kernel
Kernel version (numeric)
int parse_flag(char *text __unused, int *flag)
Parse flag.
static int efi_can_load(struct image *image)
Check if EFI image can be loaded directly.
Command line option parsing.
Option does not take an argument.
int require_loader
Require third party loader.
const char * name
Name of the command.
#define OPTION_DESC(_longopt, _shortopt, _has_arg, _struct, _field, _parse)
Construct option descriptor.
Option requires an argument.
A command-line option descriptor.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
#define COMMAND_DESC(_struct, _options, _min_args, _max_args, _usage)
Construct command descriptor.
static union @438 opts
"cert<xxx>" option list
int shim(struct image *image, int require_loader, int allow_pxe, int allow_sbat)
Set shim image.
#define NULL
NULL pointer (VOID *)
struct command shim_commands [] __command
Shim commands.
int allow_pxe
Allow PXE base code protocol.
int imgacquire(const char *name_uri, unsigned long timeout, struct image **image)
Acquire an image.
int allow_sbat
Allow SBAT variable access.