diff mbox series

[isar-cip-core] customizations: Select EFI Boot Guard as bootloader in swupdate.cfg

Message ID b572071c-d05c-167b-6a3e-363272e7c88e@siemens.com (mailing list archive)
State Accepted
Headers show
Series [isar-cip-core] customizations: Select EFI Boot Guard as bootloader in swupdate.cfg | expand

Commit Message

Jan Kiszka June 15, 2023, 5:05 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

This is now a runtime choice for SWUpdate 2022.12 or later.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 recipes-core/customizations/common.inc         | 6 ++++++
 recipes-core/customizations/files/swupdate.cfg | 4 ++++
 2 files changed, 10 insertions(+)
 create mode 100644 recipes-core/customizations/files/swupdate.cfg
diff mbox series

Patch

diff --git a/recipes-core/customizations/common.inc b/recipes-core/customizations/common.inc
index 93f2fbe6..680a4d64 100644
--- a/recipes-core/customizations/common.inc
+++ b/recipes-core/customizations/common.inc
@@ -19,6 +19,8 @@  SRC_URI = " \
     file://99-silent-printk.conf \
     file://99-watchdog.conf"
 
+SRC_URI:append:swupdate = " file://swupdate.cfg"
+
 WIRELESS_FIRMWARE_PACKAGE ?= ""
 INSTALL_WIRELESS_TOOLS ??= "0"
 
@@ -40,3 +42,7 @@  do_install() {
 	install -v -d ${D}/etc/systemd/system.conf.d
 	install -v -m 644 ${WORKDIR}/99-watchdog.conf ${D}/etc/systemd/system.conf.d/
 }
+
+do_install:append:swupdate() {
+	install -v -m 644 ${WORKDIR}/swupdate.cfg ${D}/etc/
+}
diff --git a/recipes-core/customizations/files/swupdate.cfg b/recipes-core/customizations/files/swupdate.cfg
new file mode 100644
index 00000000..9ee47c73
--- /dev/null
+++ b/recipes-core/customizations/files/swupdate.cfg
@@ -0,0 +1,4 @@ 
+globals :
+{
+    bootloader = "ebg";
+};