diff mbox series

[isar-cip-core,4/5] cip-core-image-security: Add support for SWUpdate

Message ID eb47ff287a4397729795bb830768825728a7eade.1677789054.git.jan.kiszka@siemens.com (mailing list archive)
State Accepted
Headers show
Series Enable feature combinations of test and security extensions | expand

Commit Message

Jan Kiszka March 2, 2023, 8:30 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

This allows to enable both SWUpdate and the security-extended image at
the same time.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 kas/opt/security.yml                           | 3 +++
 recipes-core/images/cip-core-image-security.bb | 3 +++
 2 files changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/kas/opt/security.yml b/kas/opt/security.yml
index c385a627..4d119056 100644
--- a/kas/opt/security.yml
+++ b/kas/opt/security.yml
@@ -18,3 +18,6 @@  local_conf_header:
     USERS += "root"
     USER_root[password] = "Cipsecurity@123"
     USER_root[flags] = "clear-text-password"
+  adjust-swupdate: |
+    ABROOTFS_IMAGE_RECIPE = "cip-core-image-security"
+    VERITY_IMAGE_RECIPE = "cip-core-image-security"
diff --git a/recipes-core/images/cip-core-image-security.bb b/recipes-core/images/cip-core-image-security.bb
index bfd91bd3..563de897 100644
--- a/recipes-core/images/cip-core-image-security.bb
+++ b/recipes-core/images/cip-core-image-security.bb
@@ -43,3 +43,6 @@  IMAGE_PREINSTALL += " \
 # Package names based on the distro version
 IMAGE_PREINSTALL:append:buster = " libtss2-esys0"
 IMAGE_PREINSTALL:append:bullseye = " libtss2-esys-3.0.2-0"
+
+CIP_IMAGE_OPTIONS ?= ""
+require ${CIP_IMAGE_OPTIONS}