From c65869b9c9a667fb689c5d3498ef21117d5ab648 Mon Sep 17 00:00:00 2001 From: Samuel Dolt Date: Mon, 30 Jan 2023 13:28:15 +0100 Subject: [PATCH] fix(do_swuimage): use DEPENDS to get kernel arguments WKS_KERNEL_ARGS was using previously inside COREOS to pass the kernel arguments between the machine configuration and image generation. This was already replaced by the APPEND variable that do the same and is documented in oe-core. --- .../meta-belden-coreos/classes/coreos-image-swupdate.bbclass | 2 +- layers/meta-belden-coreos/files/sw-description | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layers/meta-belden-coreos/classes/coreos-image-swupdate.bbclass b/layers/meta-belden-coreos/classes/coreos-image-swupdate.bbclass index 901a4c1..36357e7 100644 --- a/layers/meta-belden-coreos/classes/coreos-image-swupdate.bbclass +++ b/layers/meta-belden-coreos/classes/coreos-image-swupdate.bbclass @@ -19,7 +19,7 @@ python () { inherit swupdate-image # Ensure than variable used in the sw-description files are watched for change -do_swuimage[vardeps] += "COREOS_KERNEL0_FILENAME COREOS_KERNEL1_FILENAME EFIBOOTGUARD_TIMEOUT COREOS_DISK_PARTLABEL_LOOKUP_DIRECTORY" +do_swuimage[vardeps] += "COREOS_KERNEL0_FILENAME COREOS_KERNEL1_FILENAME EFIBOOTGUARD_TIMEOUT COREOS_DISK_PARTLABEL_LOOKUP_DIRECTORY APPEND" do_swuimage[deptask] += "do_bundle_uki" SWUPDATE_IMAGES += "${COREOS_KERNEL0_NAME} ${COREOS_KERNEL1_NAME}" diff --git a/layers/meta-belden-coreos/files/sw-description b/layers/meta-belden-coreos/files/sw-description index 7ad1225..29fb378 100644 --- a/layers/meta-belden-coreos/files/sw-description +++ b/layers/meta-belden-coreos/files/sw-description @@ -31,7 +31,7 @@ software = bootenv: ( { name = "kernelparams"; - value = "root=PARTLABEL=platform0 @@WKS_KERNEL_ARGS@@"; + value = "root=PARTLABEL=platform0 @@APPEND@@"; }, { name = "watchdog_timeout_sec"; @@ -71,7 +71,7 @@ software = bootenv: ( { name = "kernelparams"; - value = "root=PARTLABEL=platform1 @@WKS_KERNEL_ARGS@@"; + value = "root=PARTLABEL=platform1 @@APPEND@@"; }, { name = "watchdog_timeout_sec";