diff mbox series

[meta-swupdate] swupdate: add libsystemd dependency

Message ID 20170925150114.15800-1-christian.storm@siemens.com
State Accepted
Headers show
Series [meta-swupdate] swupdate: add libsystemd dependency | expand

Commit Message

Storm, Christian Sept. 25, 2017, 3:01 p.m. UTC
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(+)

Comments

Stefano Babic Sept. 26, 2017, 1:14 p.m. UTC | #1
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 mbox series

Patch

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