diff mbox series

[meta-swupdate,2/2] swupdate: add DEPENDS for SWUforwader

Message ID 1561665249-23531-2-git-send-email-pjtexier@koncepto.io
State Accepted
Headers show
Series None | expand

Commit Message

'Darko Komljenovic' via swupdate June 27, 2019, 7:54 p.m. UTC
Check if libwebsockets, uriparser & curl are required

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
---
 recipes-support/swupdate/swupdate.inc | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Joris OFFOUGA June 27, 2019, 8:06 p.m. UTC | #1
Hi Pierre-Jean,

Le 27/06/2019 à 21:54, 'Pierre-Jean Texier' via swupdate a écrit :
> Check if libwebsockets, uriparser & curl are required
>
> 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 1f8c200..392af31 100644
> --- a/recipes-support/swupdate/swupdate.inc
> +++ b/recipes-support/swupdate/swupdate.inc
> @@ -99,6 +99,10 @@ python () {
>           depends = d.getVar('DEPENDS', False)
>           d.setVar('DEPENDS', depends + ' libgpiod')
>   
> +    if 'CONFIG_SWUFORWARDER_HANDLER=y\n' in features:
> +        depends = d.getVar('DEPENDS', False)
> +        d.setVar('DEPENDS', depends + ' curl libwebsockets uriparser')
> +
>       if 'CONFIG_RDIFFHANDLER=y\n' in features:
>           depends = d.getVar('DEPENDS', False)
>           d.setVar('DEPENDS', depends + ' librsync')

Tested-by: Joris Offouga <offougajoris@gmail.com>

Best Regards,

Joris Offouga
diff mbox series

Patch

diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc
index 1f8c200..392af31 100644
--- a/recipes-support/swupdate/swupdate.inc
+++ b/recipes-support/swupdate/swupdate.inc
@@ -99,6 +99,10 @@  python () {
         depends = d.getVar('DEPENDS', False)
         d.setVar('DEPENDS', depends + ' libgpiod')
 
+    if 'CONFIG_SWUFORWARDER_HANDLER=y\n' in features:
+        depends = d.getVar('DEPENDS', False)
+        d.setVar('DEPENDS', depends + ' curl libwebsockets uriparser')
+
     if 'CONFIG_RDIFFHANDLER=y\n' in features:
         depends = d.getVar('DEPENDS', False)
         d.setVar('DEPENDS', depends + ' librsync')