diff mbox series

[isar-cip-core,v3,5/6] format: classes/efibootguard fix spacing

Message ID 20240305161128.2777211-6-Quirin.Gylstorff@siemens.com (mailing list archive)
State Accepted
Headers show
Series Make swupdate signing more robust | expand

Commit Message

Gylstorff Quirin March 5, 2024, 4:10 p.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 classes/efibootguard.bbclass | 38 ++++++++++++++++++------------------
 1 file changed, 19 insertions(+), 19 deletions(-)
diff mbox series

Patch

diff --git a/classes/efibootguard.bbclass b/classes/efibootguard.bbclass
index 2b4f09e..b130968 100644
--- a/classes/efibootguard.bbclass
+++ b/classes/efibootguard.bbclass
@@ -47,24 +47,24 @@  def efi_bootloader_name(d):
     return "boot{}.efi".format(efi_arch)
 
 SWU_EXTEND_SW_DESCRIPTION += "add_ebg_update"
-python add_ebg_update(){
-   efi_boot_loader_file = efi_bootloader_name(d)
-   efi_boot_device = d.getVar('SWU_EFI_BOOT_DEVICE')
-   swu_ebg_update_node = f"""
-   {{
-          filename = "{efi_boot_loader_file}";
-          path = "EFI/BOOT/{efi_boot_loader_file}";
-          device = "{efi_boot_device}";
-          filesystem = "vfat";
-          sha256 = "{efi_boot_loader_file}-sha256";
-          properties: {{
-               atomic-install = "true";
-          }};
-   }}
-   """
+python add_ebg_update() {
+    efi_boot_loader_file = efi_bootloader_name(d)
+    efi_boot_device = d.getVar('SWU_EFI_BOOT_DEVICE')
+    swu_ebg_update_node = f"""
+    {{
+        filename = "{efi_boot_loader_file}";
+        path = "EFI/BOOT/{efi_boot_loader_file}";
+        device = "{efi_boot_device}";
+        filesystem = "vfat";
+        sha256 = "{efi_boot_loader_file}-sha256";
+        properties: {{
+            atomic-install = "true";
+        }};
+    }}
+    """
 
-   d.setVar('SWU_BOOTLOADER_FILE_NODE', swu_ebg_update_node)
-   ebg_update = d.getVar('SWU_EBG_UPDATE') or ""
-   if ebg_update:
-     d.appendVar('SWU_FILE_NODES', "," + swu_ebg_update_node)
+    d.setVar('SWU_BOOTLOADER_FILE_NODE', swu_ebg_update_node)
+    ebg_update = d.getVar('SWU_EBG_UPDATE') or ""
+    if ebg_update:
+        d.appendVar('SWU_FILE_NODES', "," + swu_ebg_update_node)
 }