From 9ae792cc0153c73b2d44301983753adecb37221c Mon Sep 17 00:00:00 2001 From: James Hilliard Date: Sun, 5 Dec 2021 04:22:11 -0700 Subject: [PATCH] package/network-manager: add optional systemd support Signed-off-by: James Hilliard Signed-off-by: Thomas Petazzoni --- package/network-manager/network-manager.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/package/network-manager/network-manager.mk b/package/network-manager/network-manager.mk index a787c25c00..974320fce0 100644 --- a/package/network-manager/network-manager.mk +++ b/package/network-manager/network-manager.mk @@ -113,6 +113,21 @@ else NETWORK_MANAGER_CONF_OPTS += --without-ofono endif +ifeq ($(BR2_PACKAGE_SYSTEMD),y) +NETWORK_MANAGER_DEPENDENCIES += systemd +NETWORK_MANAGER_CONF_OPTS += \ + --with-systemd-journal \ + --with-config-logging-backend-default=journal \ + --with-session-tracking=systemd \ + --with-suspend-resume=systemd +else +NETWORK_MANAGER_CONF_OPTS += \ + --without-systemd-journal \ + --with-config-logging-backend-default=syslog \ + --without-session-tracking \ + --with-suspend-resume=upower +endif + ifeq ($(BR2_PACKAGE_POLKIT),y) NETWORK_MANAGER_DEPENDENCIES += polkit NETWORK_MANAGER_CONF_OPTS += --enable-polkit