Browse Source

swupdate: check if libgpiod is required

Signed-off-by: Stefano Babic <sbabic@denx.de>
Stefano Babic 7 years ago
parent
commit
e0c7223fa4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      recipes-support/swupdate/swupdate.inc

+ 4 - 0
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')
 }