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