diff mbox series

[isar-cip-core,1/5] swupdate-config: add dependency to u-boot-${MACHINE}-config

Message ID 20210527131741.8828-2-Quirin.Gylstorff@siemens.com (mailing list archive)
State New
Headers show
Series Add ci for secure-boot and swupdate | expand

Commit Message

Quirin Gylstorff May 27, 2021, 1:17 p.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

If U_BOOT_CONFIG_PACKAGE is set,  swupdate should depend on
the u-boot-${MACHINE}-config.

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 classes/swupdate-config.bbclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/classes/swupdate-config.bbclass b/classes/swupdate-config.bbclass
index 4e46b37..f67ca4f 100644
--- a/classes/swupdate-config.bbclass
+++ b/classes/swupdate-config.bbclass
@@ -54,7 +54,9 @@  KFEATURE_u-boot[BUILD_DEB_DEPENDS] = "libubootenv-dev"
 KFEATURE_u-boot[DEBIAN_DEPENDS] = "${@ 'libubootenv0.1, u-boot-${MACHINE}-config' \
                                           if d.getVar("U_BOOT_CONFIG_PACKAGE", True) == "1" \
                                           else 'libubootenv0.1'}"
-KFEATURE_u-boot[DEPENDS] = "libubootenv"
+KFEATURE_u-boot[DEPENDS] = "${@ 'libubootenv u-boot-${MACHINE}-config' \
+                                          if d.getVar("U_BOOT_CONFIG_PACKAGE", True) == "1" \
+                                          else 'libubootenv'}"
 KFEATURE_u-boot[KCONFIG_SNIPPETS] = "file://swupdate_defconfig_u-boot.snippet"
 
 SWUPDATE_LUASCRIPT ?= "swupdate_handlers.lua"