public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
From: Alperen Erdogan <alperen.erdogan@siemens.com>
To: cip-dev@lists.cip-project.org
Cc: erhan.cakir@siemens.com, gokhan.cetin@siemens.com,
	jan.kiszka@siemens.com,
	Alperen Erdogan <alperen.erdogan@siemens.com>
Subject: [isar-cip-core][PATCH 1/2] swupdate-config-wfx: make device identity configurable
Date: Mon, 20 Apr 2026 11:00:17 +0300	[thread overview]
Message-ID: <20260420080018.7091-2-alperen.erdogan@siemens.com> (raw)
In-Reply-To: <20260420080018.7091-1-alperen.erdogan@siemens.com>

Replace hard-coded $(cat /etc/machine-id) with WFX_DEVICE_ID
template variable. Bump recipe version to 0.2.

Signed-off-by: Alperen Erdogan <alperen.erdogan@siemens.com>
---
 .../swupdate-config-wfx/files/suricatta_wfx.conf.tmpl         | 2 +-
 ...{swupdate-config-wfx_0.1.bb => swupdate-config-wfx_0.2.bb} | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
 rename recipes-core/swupdate-config-wfx/{swupdate-config-wfx_0.1.bb => swupdate-config-wfx_0.2.bb} (86%)

diff --git a/recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl b/recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl
index f750f3d..ae7fcb5 100644
--- a/recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl
+++ b/recipes-core/swupdate-config-wfx/files/suricatta_wfx.conf.tmpl
@@ -1,4 +1,4 @@
 #
 # SPDX-License-Identifier: MIT
 #
-SWUPDATE_SURICATTA_ARGS="--server lua -u ${WFX_URL} -i $(cat /etc/machine-id)"
+SWUPDATE_SURICATTA_ARGS="--server lua -u ${WFX_URL} -i ${WFX_DEVICE_ID}"
diff --git a/recipes-core/swupdate-config-wfx/swupdate-config-wfx_0.1.bb b/recipes-core/swupdate-config-wfx/swupdate-config-wfx_0.2.bb
similarity index 86%
rename from recipes-core/swupdate-config-wfx/swupdate-config-wfx_0.1.bb
rename to recipes-core/swupdate-config-wfx/swupdate-config-wfx_0.2.bb
index c800c84..70a2eb6 100644
--- a/recipes-core/swupdate-config-wfx/swupdate-config-wfx_0.1.bb
+++ b/recipes-core/swupdate-config-wfx/swupdate-config-wfx_0.2.bb
@@ -18,10 +18,12 @@ DEBIAN_PROVIDES := "${PN}"

 PN .= "-${MACHINE}"

+WFX_DEVICE_ID ?= "$(cat /etc/machine-id)"
+
 SRC_URI += "file://suricatta_wfx.conf.tmpl"

 TEMPLATE_FILES += " suricatta_wfx.conf.tmpl"
-TEMPLATE_VARS += " WFX_URL"
+TEMPLATE_VARS += " WFX_URL WFX_DEVICE_ID"

 do_install() {
     install -d ${D}/etc/swupdate/conf.d
--
2.43.0



  reply	other threads:[~2026-04-20  8:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-20  8:00 [isar-cip-core][PATCH 0/2] swupdate-config-wfx: make device identity configurable Alperen Erdogan
2026-04-20  8:00 ` Alperen Erdogan [this message]
2026-04-20  8:00 ` [isar-cip-core][PATCH 2/2] doc: update wfx documentation for configurable device identity Alperen Erdogan
2026-04-20  9:11 ` [isar-cip-core][PATCH 0/2] swupdate-config-wfx: make device identity configurable Jan Kiszka
2026-04-20 14:56   ` Fatih Alperen Erdogan
2026-04-21 13:33     ` Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260420080018.7091-2-alperen.erdogan@siemens.com \
    --to=alperen.erdogan@siemens.com \
    --cc=cip-dev@lists.cip-project.org \
    --cc=erhan.cakir@siemens.com \
    --cc=gokhan.cetin@siemens.com \
    --cc=jan.kiszka@siemens.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox