diff mbox series

[meta-swupdate,1/3] swupdate: check if libgpiod is required

Message ID 1532101495-5540-1-git-send-email-sbabic@denx.de
State Accepted
Headers show
Series [meta-swupdate,1/3] swupdate: check if libgpiod is required | expand

Commit Message

Stefano Babic July 20, 2018, 3:44 p.m. UTC
Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 recipes-support/swupdate/swupdate.inc | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc
index b940a73..81dd2c8 100644
--- a/recipes-support/swupdate/swupdate.inc
+++ b/recipes-support/swupdate/swupdate.inc
@@ -89,6 +89,10 @@  python () {
         depends = d.getVar('DEPENDS', False)
         d.setVar('DEPENDS', depends + ' mtd-utils')
 
+    if 'CONFIG_UCFWHANDLER=y\n' in features:
+        depends = d.getVar('DEPENDS', False)
+        d.setVar('DEPENDS', depends + ' libgpiod')
+
     if 'CONFIG_MONGOOSE_WEB_API_V2=y\n' in features:
         d.setVar('SWUPDATE_WWW', 'webapp')
 }