public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
* [isar-cip-core][PATCH 0/2] swupdate-config-wfx: make device identity configurable
@ 2026-04-20  8:00 Alperen Erdogan
  2026-04-20  8:00 ` [isar-cip-core][PATCH 1/2] " Alperen Erdogan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alperen Erdogan @ 2026-04-20  8:00 UTC (permalink / raw)
  To: cip-dev; +Cc: erhan.cakir, gokhan.cetin, jan.kiszka, Alperen Erdogan

Add WFX_DEVICE_ID variable to allow configuring the wfx suricatta
device identity at build time. Defaults to $(cat /etc/machine-id).

Alperen Erdogan (2):
  swupdate-config-wfx: make device identity configurable
  doc: update wfx documentation for configurable device identity

 doc/README.swupdate.md                                        | 4 ++--
 .../swupdate-config-wfx/files/suricatta_wfx.conf.tmpl         | 2 +-
 ...{swupdate-config-wfx_0.1.bb => swupdate-config-wfx_0.2.bb} | 4 +++-
 3 files changed, 6 insertions(+), 4 deletions(-)
 rename recipes-core/swupdate-config-wfx/{swupdate-config-wfx_0.1.bb => swupdate-config-wfx_0.2.bb} (86%)

--
2.43.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [isar-cip-core][PATCH 1/2] swupdate-config-wfx: make device identity configurable
  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
  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
  2 siblings, 0 replies; 5+ messages in thread
From: Alperen Erdogan @ 2026-04-20  8:00 UTC (permalink / raw)
  To: cip-dev; +Cc: erhan.cakir, gokhan.cetin, jan.kiszka, Alperen Erdogan

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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [isar-cip-core][PATCH 2/2] doc: update wfx documentation for configurable device identity
  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 ` [isar-cip-core][PATCH 1/2] " Alperen Erdogan
@ 2026-04-20  8:00 ` Alperen Erdogan
  2026-04-20  9:11 ` [isar-cip-core][PATCH 0/2] swupdate-config-wfx: make device identity configurable Jan Kiszka
  2 siblings, 0 replies; 5+ messages in thread
From: Alperen Erdogan @ 2026-04-20  8:00 UTC (permalink / raw)
  To: cip-dev; +Cc: erhan.cakir, gokhan.cetin, jan.kiszka, Alperen Erdogan

Update machine-id references to mention WFX_DEVICE_ID.

Signed-off-by: Alperen Erdogan <alperen.erdogan@siemens.com>
---
 doc/README.swupdate.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/README.swupdate.md b/doc/README.swupdate.md
index f308d7e..affb85b 100644
--- a/doc/README.swupdate.md
+++ b/doc/README.swupdate.md
@@ -523,7 +523,7 @@ Now start the image which will contain the RT kernel:
 host$ SWUPDATE_BOOT=y ./start-qemu.sh amd64
 ```

-Check the machine-id in `/etc/machine-id`. SWUpdate is launched with this `id` as the `client-id` and is later used to create `wfx` job for the client:
+By default, SWUpdate uses the machine-id from `/etc/machine-id` as the `client-id` (configurable via `WFX_DEVICE_ID` in the `swupdate-config-wfx` recipe). This `client-id` is later used to create `wfx` job for the client:
 ```
 root@demo cat /etc/machine-id
 049adc79659044f8887c83b3203c84f1
@@ -540,7 +540,7 @@ Create `wfx.workflow.dau.direct` wofkflow:
 host$ curl -L https://raw.githubusercontent.com/siemens/wfx/refs/heads/main/workflow/dau/wfx.workflow.dau.direct.yml | wfxctl workflow create -
 ```

-Create a wfx job that updates the device. Set `client-id` with the `id` from `/etc/machine-id` in qemu:
+Create a wfx job that updates the device. Set `client-id` with the device identity (default: `/etc/machine-id`) from qemu:
 ```
 host$ cat <<EOF | envsubst | wfxctl job create --client-id '049adc79659044f8887c83b3203c84f1' --workflow wfx.workflow.dau.direct -
 {
--
2.43.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [isar-cip-core][PATCH 0/2] swupdate-config-wfx: make device identity configurable
  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 ` [isar-cip-core][PATCH 1/2] " Alperen Erdogan
  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 ` Jan Kiszka
  2026-04-20 14:56   ` Fatih Alperen Erdogan
  2 siblings, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2026-04-20  9:11 UTC (permalink / raw)
  To: Alperen Erdogan, cip-dev
  Cc: erhan.cakir, gokhan.cetin, Adler, Michael, Christian Storm

On 20.04.26 10:00, Alperen Erdogan wrote:
> Add WFX_DEVICE_ID variable to allow configuring the wfx suricatta
> device identity at build time. Defaults to $(cat /etc/machine-id).
> 
> Alperen Erdogan (2):
>   swupdate-config-wfx: make device identity configurable
>   doc: update wfx documentation for configurable device identity
> 
>  doc/README.swupdate.md                                        | 4 ++--
>  .../swupdate-config-wfx/files/suricatta_wfx.conf.tmpl         | 2 +-
>  ...{swupdate-config-wfx_0.1.bb => swupdate-config-wfx_0.2.bb} | 4 +++-
>  3 files changed, 6 insertions(+), 4 deletions(-)
>  rename recipes-core/swupdate-config-wfx/{swupdate-config-wfx_0.1.bb => swupdate-config-wfx_0.2.bb} (86%)
> 
> --
> 2.43.0
> 

Looks good to me so far - but would you mind explaining your use case as
well? Do you replace the extraction logic because your target provides
an production device ID differently, or do you pin it to fixed known
value in a development image?

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [isar-cip-core][PATCH 0/2] swupdate-config-wfx: make device identity configurable
  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
  0 siblings, 0 replies; 5+ messages in thread
From: Fatih Alperen Erdogan @ 2026-04-20 14:56 UTC (permalink / raw)
  To: cip-dev

On Mon, Apr 20, 2026 at 02:11 AM, Jan Kiszka wrote:

>
> On 20.04.26 10:00, Alperen Erdogan wrote:
> > Add WFX_DEVICE_ID variable to allow configuring the wfx suricatta
> > device identity at build time. Defaults to $(cat /etc/machine-id).
> > 
> > Alperen Erdogan (2):
> >   swupdate-config-wfx: make device identity configurable
> >   doc: update wfx documentation for configurable device identity
> > 
> >  doc/README.swupdate.md                                        | 4 ++--
> >  .../swupdate-config-wfx/files/suricatta_wfx.conf.tmpl         | 2 +-
> >  ...{swupdate-config-wfx_0.1.bb => swupdate-config-wfx_0.2.bb} | 4 +++-
> >  3 files changed, 6 insertions(+), 4 deletions(-)
> >  rename recipes-core/swupdate-config-wfx/{swupdate-config-wfx_0.1.bb =>
> swupdate-config-wfx_0.2.bb} (86%)
> > 
> > --
> > 2.43.0
> > 
> 
> Looks good to me so far - but would you mind explaining your use case as
> well? Do you replace the extraction logic because your target provides
> an production device ID differently, or do you pin it to fixed known
> value in a development image?
> 
> Jan
> 
> -- 
> Siemens AG, Foundational Technologies
> Linux Expert Center
>

for this use case, target uses a unique device ID provided by the internal system, so it’s read from a different file path.

Thanks, 

Alperen


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-04-20 14:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [isar-cip-core][PATCH 1/2] " Alperen Erdogan
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox