u-boot-brain/lib
Ilias Apalodimas 479ab6c17e efi_selftest: add selftests for loadfile2 used to load initramfs
Provide a unit test loading an initial ramdisk using the
EFI_LOAD_FILE2_PROTOCOL. The test is only executed on request.

An example usage - given a file image with a file system in partition 1
holding file initrd - is:

* Configure the sandbox with

  CONFIG_EFI_SELFTEST=y
  CONFIG_EFI_LOAD_FILE2_INITRD=y
  CONFIG_EFI_INITRD_FILESPEC="host 0:1 initrd"

* Run ./u-boot and execute

    host bind 0 image
    setenv efi_selftest load initrd
    bootefi selftest

This would provide a test output like:

    Testing EFI API implementation

    Selected test: 'load initrd'

    Setting up 'load initrd'
    Setting up 'load initrd' succeeded

    Executing 'load initrd'
    Loaded 12378613 bytes
    CRC32 2997478465
    Executing 'load initrd' succeeded

Now the size and CRC32 can be compared to the provided file.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-02-28 19:37:14 +01:00
..
aes u-boot: fit: add support to decrypt fit with aes 2020-01-17 10:16:29 -05:00
at91
bzip2 dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
crypto dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
dhry
efi dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
efi_driver dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
efi_loader efi_loader: Implement FileLoad2 for initramfs loading 2020-02-28 19:37:14 +01:00
efi_selftest efi_selftest: add selftests for loadfile2 used to load initramfs 2020-02-28 19:37:14 +01:00
libavb dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
libfdt libfdt: Revert 6dcb8ba4 from upstream libfdt 2020-01-30 13:30:35 -05:00
lzma
lzo
optee optee: Replace uninitialized return variable by proper one. 2020-01-30 13:30:35 -05:00
rsa dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
tizen
zlib common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
zstd dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
.gitignore lib: ignore oid_registry_data.c file 2020-01-22 17:47:57 -05:00
addr_map.c
aes.c aes: add support of aes192 and aes256 2020-01-17 10:15:49 -05:00
asm-offsets.c
asn1_decoder.c lib: add asn1 decoder 2019-12-06 16:44:20 -05:00
bch.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
binman.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
bitrev.c
charset.c lib: charset: add u16_str<n>cmp() 2019-09-20 20:09:19 +02:00
circbuf.c
crc7.c
crc8.c common: Drop linux/crc8.h 2019-12-02 18:23:07 -05:00
crc16.c Roll CRC16-CCITT into the hash infrastructure 2018-12-08 20:18:44 -05:00
crc32.c crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
crc32c.c
ctype.c
date.c lib: add mktime64() for linux compatibility 2019-12-06 16:44:19 -05:00
display_options.c common: Move and rename CONFIG_SYS_SUPPORT_64BIT_DATA 2020-01-17 17:53:52 -05:00
div64.c div64: Don't instrument the division function 2019-04-23 20:26:43 -06:00
errno_str.c lib: errno: sync error codes 2019-10-31 07:22:53 -04:00
errno.c
fdtdec_common.c
fdtdec_test.c fdtdec: test: Fix memory leak 2019-07-10 16:52:58 -06:00
fdtdec.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
gunzip.c crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
gzip.c common: Move gzip functions into a new gzip header 2019-08-11 16:43:41 -04:00
hang.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
hashtable.c common: Move sorting functions to their own header file 2019-12-02 18:23:08 -05:00
hexdump.c
image-sparse.c
Kconfig lib: Kconfig dependencies for pseudo-random library 2020-01-25 12:04:36 -05:00
ldiv.c
linux_compat.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
linux_string.c
list_sort.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
lmb.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
lz4_wrapper.c common: Add a new lz4.h header file 2019-12-02 18:23:11 -05:00
lz4.c
Makefile lib: rsa: consider CONFIG_SPL_RSA 2020-01-25 12:04:36 -05:00
md5.c
membuff.c
net_utils.c net: Move the checksum functions to lib/ 2019-12-15 11:43:57 +08:00
of_live.c
oid_registry.c lib: add oid registry utility 2019-12-06 16:44:20 -05:00
panic.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
physmem.c sandbox: physmem: Use mapping to support sandbox 2018-12-05 06:01:34 -07:00
qsort.c common: Move sorting functions to their own header file 2019-12-02 18:23:08 -05:00
rand.c common: Move random-number functions into their own header 2019-12-02 18:23:07 -05:00
rbtree.c
rc4.c
sha1.c
sha256.c
slre.c
smbios.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
string.c string: Allow arch override of strndup() also 2020-02-05 19:33:46 -07:00
strto.c
tables_csum.c
time.c common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
tiny-printf.c Fix for patman with email addresses containing commas 2019-11-01 09:34:35 -04:00
tpm-common.c tpm: Fix a logging warning in unpack_byte_string() 2018-12-05 06:01:34 -07:00
tpm-utils.h tpm: Convert to use a device parameter 2018-11-29 09:30:06 -07:00
tpm-v1.c tpm: simplify: tpm_set_global_lock() 2019-02-19 08:55:43 -05:00
tpm-v2.c tpm: Convert to use a device parameter 2018-11-29 09:30:06 -07:00
trace.c trace: provide Sphinx style comments 2020-01-22 17:47:57 -05:00
uuid.c common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
vsprintf.c lib: Always build support for formatting MAC and IP address 2019-12-09 09:47:41 -06:00
xxhash.c lib: Add xxhash support 2019-05-05 08:48:50 -04:00