From 32104c2fec1299dcd2e1253dfcfc1894b1096469 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 16 Sep 2023 04:03:52 +0200 Subject: [PATCH] ubootTools: add `efivar.py` as a tool `efivar.py` enable a user to manipulate the EFI variable store on disk that U-Boot uses. This is useful to prepare a SecureBoot set of variables that can be seeded inside of U-Boot directly if you do not have a proper OP-TEE on your platform. --- pkgs/misc/uboot/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/misc/uboot/default.nix b/pkgs/misc/uboot/default.nix index 6c002851db6f..d4be6a73b9fc 100644 --- a/pkgs/misc/uboot/default.nix +++ b/pkgs/misc/uboot/default.nix @@ -15,6 +15,7 @@ , openssl , swig , which +, python3 , armTrustedFirmwareAllwinner , armTrustedFirmwareAllwinnerH6 , armTrustedFirmwareAllwinnerH616 @@ -152,6 +153,10 @@ in { "tools/mkenvimage" "tools/mkimage" ]; + + pythonScriptsToInstall = { + "tools/efivar.py" = (python3.withPackages (ps: [ ps.pyopenssl ])); + }; }; ubootA20OlinuxinoLime = buildUBoot {