diff mbox series

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

Message ID 20220617141406.526462-1-florian.bezdeka@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series [isar-cip-core] swupdate: Limit SRC_URI addition to the supported efibootguard case | expand

Commit Message

Florian Bezdeka June 17, 2022, 2:14 p.m. UTC
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@siemens.com>
---
 .../swupdate-handler-roundrobin_0.1.bb                         | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

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 \