Message ID | 20170925150114.15800-1-christian.storm@siemens.com |
---|---|
State | Accepted |
Headers | show |
Series | [meta-swupdate] swupdate: add libsystemd dependency | expand |
On 25/09/2017 17:01, Christian Storm wrote: > If systemd support is enabled in SWUpdate, > add dependency on libsystemd. > > Signed-off-by: Christian Storm <christian.storm@siemens.com> > --- > 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 705d312..0f8ea94 100644 > --- a/recipes-support/swupdate/swupdate.inc > +++ b/recipes-support/swupdate/swupdate.inc > @@ -59,6 +59,10 @@ python () { > depends = d.getVar('DEPENDS', False) > d.setVar('DEPENDS', depends + ' json-c') > > + if 'CONFIG_SYSTEMD=y\n' in features: > + depends = d.getVar('DEPENDS', False) > + d.setVar('DEPENDS', depends + ' systemd') > + > if 'CONFIG_ARCHIVE=y\n' in features: > depends = d.getVar('DEPENDS', False) > d.setVar('DEPENDS', depends + ' libarchive') > Applied to -master, -pyro, thanks ! Best regards, Stefano Babic
diff --git a/recipes-support/swupdate/swupdate.inc b/recipes-support/swupdate/swupdate.inc index 705d312..0f8ea94 100644 --- a/recipes-support/swupdate/swupdate.inc +++ b/recipes-support/swupdate/swupdate.inc @@ -59,6 +59,10 @@ python () { depends = d.getVar('DEPENDS', False) d.setVar('DEPENDS', depends + ' json-c') + if 'CONFIG_SYSTEMD=y\n' in features: + depends = d.getVar('DEPENDS', False) + d.setVar('DEPENDS', depends + ' systemd') + if 'CONFIG_ARCHIVE=y\n' in features: depends = d.getVar('DEPENDS', False) d.setVar('DEPENDS', depends + ' libarchive')
If systemd support is enabled in SWUpdate, add dependency on libsystemd. Signed-off-by: Christian Storm <christian.storm@siemens.com> --- recipes-support/swupdate/swupdate.inc | 4 ++++ 1 file changed, 4 insertions(+)