diff mbox series

swupdate: check if librsync is required

Message ID 1552146551-28902-1-git-send-email-pjtexier@koncepto.io
State Accepted
Headers show
Series swupdate: check if librsync is required | expand

Commit Message

'Darko Komljenovic' via swupdate March 9, 2019, 3:49 p.m. UTC
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
---
 recipes-support/swupdate/swupdate.inc | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Stefano Babic March 9, 2019, 5:59 p.m. UTC | #1
On 09/03/19 16:49, 'Pierre-Jean Texier' via swupdate wrote:
> Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
> ---
>  recipes-support/swupdate/swupdate.inc | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc
> index 5412952..6c675c1 100644
> --- a/recipes-support/swupdate/swupdate.inc
> +++ b/recipes-support/swupdate/swupdate.inc
> @@ -94,6 +94,10 @@ python () {
>          depends = d.getVar('DEPENDS', False)
>          d.setVar('DEPENDS', depends + ' libgpiod')
>  
> +    if 'CONFIG_RDIFFHANDLER=y\n' in features:
> +        depends = d.getVar('DEPENDS', False)
> +        d.setVar('DEPENDS', depends + ' librsync')
> +
>      if 'CONFIG_MONGOOSE_WEB_API_V2=y\n' in features:
>          d.setVar('SWUPDATE_WWW', 'webapp')
>  }
> 

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc
index 5412952..6c675c1 100644
--- a/recipes-support/swupdate/swupdate.inc
+++ b/recipes-support/swupdate/swupdate.inc
@@ -94,6 +94,10 @@  python () {
         depends = d.getVar('DEPENDS', False)
         d.setVar('DEPENDS', depends + ' libgpiod')
 
+    if 'CONFIG_RDIFFHANDLER=y\n' in features:
+        depends = d.getVar('DEPENDS', False)
+        d.setVar('DEPENDS', depends + ' librsync')
+
     if 'CONFIG_MONGOOSE_WEB_API_V2=y\n' in features:
         d.setVar('SWUPDATE_WWW', 'webapp')
 }