forked from OERV-BSP/u-boot
efi_loader, pytest: set up secure boot environment
A fixture for UEFI secure boot tests (image authentication and variable authentication) is defined. A small file system with test data in a single partition formatted in fat is created. This test requires efitools v1.5.2 or later. If the system's efitools is older, you have to build it on your own and define EFITOOLS_PATH. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
525fc06744
commit
fe6ca4d5d2
21
test/py/tests/test_efi_secboot/defs.py
Normal file
21
test/py/tests/test_efi_secboot/defs.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
# Disk image name
|
||||
EFI_SECBOOT_IMAGE_NAME='test_efi_secboot.img'
|
||||
|
||||
# Size in MiB
|
||||
EFI_SECBOOT_IMAGE_SIZE=16
|
||||
EFI_SECBOOT_PART_SIZE=8
|
||||
|
||||
# Partition file system type
|
||||
EFI_SECBOOT_FS_TYPE='vfat'
|
||||
|
||||
# Owner guid
|
||||
GUID='11111111-2222-3333-4444-123456789abc'
|
||||
|
||||
# v1.5.1 or earlier of efitools has a bug in sha256 calculation, and
|
||||
# you need build a newer version on your own.
|
||||
EFITOOLS_PATH=''
|
||||
|
||||
# Hello World application for sandbox
|
||||
HELLO_PATH=''
|
||||
Reference in New Issue
Block a user