systemd: enable optional PAM support
authorJames Balean <james@balean.com.au>
Mon, 27 Feb 2017 03:09:46 +0000 (21:09 -0600)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 27 Feb 2017 20:40:12 +0000 (21:40 +0100)
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 <james@balean.com.au>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/systemd/systemd.mk

index fce5d8411ce737d3253fe4806f66ac3aa73e9af1..0d2f4163004ec4ec3fcd224d8cd080ffacdb27c1 100644 (file)
@@ -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