HomeFreeBSD

stand: Fix secureboot build

Description

stand: Fix secureboot build

Make libesecureboot build, enabled when WITH_BEARSSL=y
WITH_LOADER_EFI_SECUREBOOT=y.

Copy EDK2 files related to secure boot to sys/contrib/edk2 and delete
duplicates under libsecreboot/efi/include.
Adjust efi_variables.c to build in the new environment.

Undefine MIN and MAX before include sys/param.h in libsecureboot.h. I'm
not sure that sys/param.h is needed here, but either the param.h or the
Base.h definitions are fine.

Fix include paths to reflect the new way.

Fixes: 43b8edb32051
Sponsored by: Netflix

Details

Provenance
impAuthored on Mon, Nov 17, 5:49 AM
Parents
rGc62eaf8af905: stand: Update riscv efi booting to edk2 includes
Branches
Unknown
Tags
Unknown