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


Quirin Gylstorff
 

From: Quirin Gylstorff <quirin.gylstorff@...>

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

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

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"
--
2.20.1

Join cip-dev@lists.cip-project.org to automatically receive all group messages.