diff mbox series

[isar-cip-core,3/9] swupdate: Do not add .ini file to SRC_URI if SWUPDATE_BOOTLOADER is not set

Message ID b4a6f8b0e71388d56fefb458e78d7943fd6fa45c.1625660195.git.jan.kiszka@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series Varions Updates: bullseye, kernel, kas, isar | expand

Commit Message

Jan Kiszka July 7, 2021, 12:16 p.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

This prevents false warning during the parsing stage when swupdate is
not used, thus SWUPDATE_BOOTLOADER is not configured.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 recipes-core/swupdate/swupdate.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/recipes-core/swupdate/swupdate.bb b/recipes-core/swupdate/swupdate.bb
index 4984a63..8bef9ab 100644
--- a/recipes-core/swupdate/swupdate.bb
+++ b/recipes-core/swupdate/swupdate.bb
@@ -30,7 +30,7 @@  inherit dpkg
 inherit swupdate-config
 
 SWUPDATE_ROUND_ROBIN_HANDLER_CONFIG ?= "swupdate.handler.${SWUPDATE_BOOTLOADER}.ini"
-SRC_URI += "file://${SWUPDATE_ROUND_ROBIN_HANDLER_CONFIG}"
+SRC_URI += "${@('file://' + d.getVar('SWUPDATE_ROUND_ROBIN_HANDLER_CONFIG')) if d.getVar('SWUPDATE_BOOTLOADER') else ''}"
 KFEATURES += "luahandler"
 
 S = "${WORKDIR}/git"