mbox series

[isar-cip-core,RFC,v3,0/5] Add Bootloader to sw-description

Message ID 20231229123111.400555-1-Quirin.Gylstorff@siemens.com (mailing list archive)
Headers show
Series Add Bootloader to sw-description | expand

Message

Gylstorff Quirin Dec. 29, 2023, 12:30 p.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

This series adds the, possible signed, efibootguard binaries to the deploy dir
and adds them to swu file and sw-description to update the bootloader.

The new entry contains following information:
{
           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;
           };
}

Changes v3:
 - Add Generator for sw-description instead of using a template for
   Debian 11+.

Changes v2:
 - The efibootguard file is only added if the new variable `SWU_EBG_UPDATE` equals `1`
 - Add the variable `SWU_EFI_BOOT_DEVICE` to set the device containing
   the efibootguard binary
 - Add the variable `SWU_EXTEND_SW_DESCRIPTION` to all extension of the
   sw-description file
 - use atomic-install to update the binary atomically


Quirin Gylstorff (5):
  efibootguard-efi.py: copy signed ebg binary to DEPLOY_DIR
  swupdate.bbclass: Add SWU_EXTEND_SW_DESCRIPTION
  swupdate: Extend sw-description to update efibootguard
  classes: Generate sw-description from bitbake variables
  images/swupdate.inc: Add variables to generate the sw-description

Quirin Gylstorff (5):
  efibootguard-efi.py: copy signed ebg binary to DEPLOY_DIR
  swupdate.bbclass: Add SWU_EXTEND_SW_DESCRIPTION
  swupdate: Extend sw-description to update efibootguard
  classes: Generate sw-description from bitbake variables
  images/swupdate.inc: Add variables to generate the sw-description

 classes/sw-description-generator.bbclass      | 200 ++++++++++++++++++
 classes/swupdate.bbclass                      |  52 ++++-
 recipes-core/images/swu/sw-description.tmpl   |   2 +-
 recipes-core/images/swupdate.inc              |  27 +++
 .../jsontolibconf/files/jsontolibconf         |  54 +++++
 .../jsontolibconf/jsontolibconf_0.1.bb        |  22 ++
 .../wic/plugins/source/efibootguard-efi.py    |  13 ++
 7 files changed, 368 insertions(+), 2 deletions(-)
 create mode 100644 classes/sw-description-generator.bbclass
 create mode 100644 recipes-devtools/jsontolibconf/files/jsontolibconf
 create mode 100644 recipes-devtools/jsontolibconf/jsontolibconf_0.1.bb