[isar-cip-core][PATCH] swupdate: Limit SRC_URI addition to the supported efibootguard case


Florian Bezdeka
 

The following build warning was observed when SWUPDATE_BOOTLOADER was
set to something different from "efibootguard" in downstream layers:

WARNING:
/work/cip-core/recipes-core/swupdate-handler-roundrobin/swupdate-handler-roundrobin_0.1.bb:
Unable to get checksum for swupdate-handler-roundrobin SRC_URI entry
swupdate.handler.u-boot.ini: file could not be found

Signed-off-by: Florian Bezdeka <florian.bezdeka@...>
---
.../swupdate-handler-roundrobin_0.1.bb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/recipes-core/swupdate-handler-roundrobin/swupdate-handler-roundrobin_0.1.bb b/recipes-core/swupdate-handler-roundrobin/swupdate-handler-roundrobin_0.1.bb
index 5801113..7202c14 100644
--- a/recipes-core/swupdate-handler-roundrobin/swupdate-handler-roundrobin_0.1.bb
+++ b/recipes-core/swupdate-handler-roundrobin/swupdate-handler-roundrobin_0.1.bb
@@ -17,8 +17,7 @@ SRCREV_swupdate-handler-roundrobin ?= "bf73f04b1eec0b8714d3a1b56bfcd1431c58ba10"

SWUPDATE_LUASCRIPT = "swupdate-handler-roundrobin/swupdate_handlers_roundrobin.lua"

-SWUPDATE_ROUND_ROBIN_HANDLER_CONFIG ?= "swupdate.handler.${SWUPDATE_BOOTLOADER}.ini"
-SRC_URI += "${@('file://' + d.getVar('SWUPDATE_ROUND_ROBIN_HANDLER_CONFIG')) if d.getVar('SWUPDATE_BOOTLOADER') else ''}"
+SRC_URI += "${@ 'file://swupdate.handler.efibootguard.ini' if d.getVar('SWUPDATE_BOOTLOADER') == 'efibootguard' else ''}"

# lua version 5.2 is currently hard coded in swupdate @ debian salsa
do_install[cleandirs] = "${D}/etc \
--
2.35.3


Florian Bezdeka
 

On Fri, 2022-06-17 at 16:14 +0200, florian.bezdeka@... via
lists.cip-project.org wrote:
The following build warning was observed when SWUPDATE_BOOTLOADER was
set to something different from "efibootguard" in downstream layers:

WARNING:
/work/cip-core/recipes-core/swupdate-handler-roundrobin/swupdate-handler-roundrobin_0.1.bb:
Unable to get checksum for swupdate-handler-roundrobin SRC_URI entry
swupdate.handler.u-boot.ini: file could not be found

Signed-off-by: Florian Bezdeka <florian.bezdeka@...>
---
Please ignore this one. Seems I posted the wrong version of that
patch... v2 should follow soon.