]> git.dujemihanovic.xyz Git - u-boot.git/commit
scripts/Makefile.lib: Embed capsule public key in platform's dtb
authorSughosh Ganu <sughosh.ganu@linaro.org>
Tue, 22 Aug 2023 17:40:05 +0000 (23:10 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 29 Aug 2023 17:38:55 +0000 (13:38 -0400)
commitc7d4dfcd142d624ed43ac590c6ef5eca24233e30
tree07bd5f7716afbe2082489f369f503cc9043fba2e
parenta958988b62eb9ad33c0f41b4482cfbba4aa71564
scripts/Makefile.lib: Embed capsule public key in platform's dtb

The EFI capsule authentication logic in u-boot expects the public key
in the form of an EFI Signature List(ESL) to be provided as part of
the platform's dtb. Currently, the embedding of the ESL file into the
dtb needs to be done manually.

Add a target for generating a dtsi file which contains the signature
node with the ESL file included as a property under the signature
node. Include the dtsi file in the dtb. This brings the embedding of
the ESL in the dtb into the U-Boot build flow.

The path to the ESL file is specified through the
CONFIG_EFI_CAPSULE_ESL_FILE symbol.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/Kconfig
lib/efi_loader/capsule_esl.dtsi.in [new file with mode: 0644]
scripts/Makefile.lib