From 9a6c03a390872d7ce91b619fdaf1d674491ad8cb Mon Sep 17 00:00:00 2001 From: James Balean Date: Sun, 26 Feb 2017 21:09:46 -0600 Subject: [PATCH] systemd: enable optional PAM support This commit enables PAM support in systemd if BR2_PACKAGE_LINUX_PAM is set. Some essential config files are not installed without the --enable-pam option. Signed-off-by: James Balean Signed-off-by: Thomas Petazzoni --- package/systemd/systemd.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index fce5d8411c..0d2f416300 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -30,7 +30,6 @@ SYSTEMD_CONF_OPTS += \ --enable-blkid \ --enable-static=no \ --disable-manpages \ - --disable-pam \ --disable-ima \ --disable-libcryptsetup \ --disable-efi \ @@ -108,6 +107,13 @@ else SYSTEMD_CONF_OPTS += --disable-lz4 endif +ifeq ($(BR2_PACKAGE_LINUX_PAM),y) +SYSTEMD_DEPENDENCIES += linux-pam +SYSTEMD_CONF_OPTS += --enable-pam +else +SYSTEMD_CONF_OPTS += --disable-pam +endif + ifeq ($(BR2_PACKAGE_XZ),y) SYSTEMD_DEPENDENCIES += xz SYSTEMD_CONF_OPTS += --enable-xz -- 2.30.2