diff mbox series

[meta-swupdate] swupdate: depend on libubootenv when selected

Message ID 1556029311-6800-1-git-send-email-diego.rondini@kynetics.com
State Accepted
Headers show
Series [meta-swupdate] swupdate: depend on libubootenv when selected | expand

Commit Message

Diego Rondini April 23, 2019, 2:21 p.m. UTC
Use standalone libubootenv when CONFIG_UBOOT_NEWAPI is selected,
otherwise stick to u-boot-fw-utils.

Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
---
 recipes-support/swupdate/swupdate.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Comments

Stefano Babic April 23, 2019, 3:51 p.m. UTC | #1
On 23/04/19 16:21, Diego Rondini wrote:
> Use standalone libubootenv when CONFIG_UBOOT_NEWAPI is selected,
> otherwise stick to u-boot-fw-utils.
> 
> Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
> ---
>  recipes-support/swupdate/swupdate.inc | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc
> index 07da0e8..497a334 100644
> --- a/recipes-support/swupdate/swupdate.inc
> +++ b/recipes-support/swupdate/swupdate.inc
> @@ -74,7 +74,10 @@ python () {
>  
>      if 'CONFIG_UBOOT=y\n' in features:
>          depends = d.getVar('DEPENDS', False)
> -        d.setVar('DEPENDS', depends + ' u-boot-fw-utils')
> +        if 'CONFIG_UBOOT_NEWAPI=y\n' in features:
> +            d.setVar('DEPENDS', depends + ' libubootenv')
> +        else:
> +            d.setVar('DEPENDS', depends + ' u-boot-fw-utils')
>  
>      if 'CONFIG_DOWNLOAD=y\n' in features or 'CONFIG_SURICATTA=y\n' in features:
>          depends = d.getVar('DEPENDS', False)
> 

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

Best regards,
Stefano Babic
'Darko Komljenovic' via swupdate April 23, 2019, 6:26 p.m. UTC | #2
Le 23/04/2019 à 16:21, Diego Rondini a écrit :
> Use standalone libubootenv when CONFIG_UBOOT_NEWAPI is selected,
> otherwise stick to u-boot-fw-utils.
>
> Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
> ---
>   recipes-support/swupdate/swupdate.inc | 5 ++++-
>   1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc
> index 07da0e8..497a334 100644
> --- a/recipes-support/swupdate/swupdate.inc
> +++ b/recipes-support/swupdate/swupdate.inc
> @@ -74,7 +74,10 @@ python () {
>   
>       if 'CONFIG_UBOOT=y\n' in features:
>           depends = d.getVar('DEPENDS', False)
> -        d.setVar('DEPENDS', depends + ' u-boot-fw-utils')
> +        if 'CONFIG_UBOOT_NEWAPI=y\n' in features:
> +            d.setVar('DEPENDS', depends + ' libubootenv')
> +        else:
> +            d.setVar('DEPENDS', depends + ' u-boot-fw-utils')
>   
>       if 'CONFIG_DOWNLOAD=y\n' in features or 'CONFIG_SURICATTA=y\n' in features:
>           depends = d.getVar('DEPENDS', False)

Tested-by: Pierre-Jean Texier <pjtexier@koncepto.io>
diff mbox series

Patch

diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc
index 07da0e8..497a334 100644
--- a/recipes-support/swupdate/swupdate.inc
+++ b/recipes-support/swupdate/swupdate.inc
@@ -74,7 +74,10 @@  python () {
 
     if 'CONFIG_UBOOT=y\n' in features:
         depends = d.getVar('DEPENDS', False)
-        d.setVar('DEPENDS', depends + ' u-boot-fw-utils')
+        if 'CONFIG_UBOOT_NEWAPI=y\n' in features:
+            d.setVar('DEPENDS', depends + ' libubootenv')
+        else:
+            d.setVar('DEPENDS', depends + ' u-boot-fw-utils')
 
     if 'CONFIG_DOWNLOAD=y\n' in features or 'CONFIG_SURICATTA=y\n' in features:
         depends = d.getVar('DEPENDS', False)