u-boot/lib/efi_loader
Heinrich Schuchardt 39a1ff8cea efi_loader: optional data in load options are binary
The field boot OptionalData in structure _EFI_LOAD_OPTIONS is for binary
data.

When we use `efidebug boot add` we should convert the 5th argument from
UTF-8 to UTF-16 before putting it into the BootXXXX variable.

When printing boot variables with `efidebug boot dump` we should support
the OptionalData being arbitrary binary data. So let's dump the data as
hexadecimal values.

Here is an example session protocol:

=> efidebug boot add 00a1 label1 scsi 0:1 doit1 'my option'
=> efidebug boot add 00a2 label2 scsi 0:1 doit2
=> efidebug boot dump
Boot00A0:
  attributes: A-- (0x00000001)
  label: label1
  file_path: .../HD(1,MBR,0xeac4e18b,0x800,0x3fffe)/doit1
  data:
    00000000: 6d 00 79 00 20 00 6f 00 70 00 74 00 69 00 6f 00  m.y. .o.p.t.i.o.
    00000010: 6e 00 00 00                                      n...
Boot00A1:
  attributes: A-- (0x00000001)
  label: label2
  file_path: .../HD(1,MBR,0xeac4e18b,0x800,0x3fffe)/doit2
  data:

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2019-05-02 18:17:50 +02:00
..
.gitignore lib: gitignore *.elf and *.so generated by efi_loader 2017-01-09 10:30:24 -05:00
efi_acpi.c efi_loader: Install ACPI configuration tables 2018-07-02 09:23:28 +08:00
efi_bootmgr.c efi_loader: optional data in load options are binary 2019-05-02 18:17:50 +02:00
efi_boottime.c efi_loader: parameter check CreateEventEx() 2019-05-02 18:17:49 +02:00
efi_console.c efi_loader: correct CTRL-A - CTRL-Z console input 2019-04-07 15:11:33 +02:00
efi_device_path.c efi_loader: check length in CreateDeviceNode() 2019-04-23 00:51:01 +02:00
efi_device_path_to_text.c efi_loader: fix typos 2018-12-02 21:59:37 +01:00
efi_device_path_utilities.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
efi_disk.c efi_loader: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
efi_file.c efi_loader: enable file SetInfo() 2019-04-07 14:17:06 +02:00
efi_freestanding.c efi_loader: provide freestanding library 2019-02-13 09:40:06 +01:00
efi_gop.c efi_loader: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
efi_hii.c efi_loader: endless loop in add_strings_package() 2019-03-20 18:16:53 +01:00
efi_hii_config.c efi_loader: debug output for HII protocols 2019-02-13 09:40:06 +01:00
efi_image_loader.c efi_loader: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
efi_memory.c efi_loader: FreePages() must fail with pages = 0 2019-05-02 18:17:49 +02:00
efi_net.c efi_loader: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
efi_root_node.c efi_loader: export root node handle 2019-04-23 00:37:27 +02:00
efi_runtime.c efi_loader: efi_add_runtime_mmio() 2019-02-13 09:40:05 +01:00
efi_setup.c efi_loader: set OsIndicationsSupported at init 2019-05-02 18:17:49 +02:00
efi_smbios.c sandbox: smbios: Update to support sandbox 2018-12-02 21:59:37 +01:00
efi_unicode_collation.c efi_loader: EFI_UNICODE_COLLATION_PROTOCOL 2018-09-23 21:55:29 +02:00
efi_variable.c efi_loader: EFI_PRINT instead of debug for variable services 2019-04-07 14:17:06 +02:00
efi_watchdog.c SPDX: Convert a few files that were missed before 2018-05-10 20:38:35 -04:00
helloworld.c efi_loader: consistent naming of protocol GUIDs 2019-04-23 00:37:27 +02:00
Kconfig efi_loader: fix setting PlatformLang 2019-04-12 22:00:42 +02:00
Makefile efi: hii: add HII config routing/access protocols 2019-02-13 09:40:06 +01:00