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 |
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
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 --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)
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(-)