]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
busybox: added linux-pam support
authorMatt Weber <Matthew.Weber@rockwellcollins.com>
Tue, 2 Jun 2015 13:28:26 +0000 (08:28 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 28 Jun 2015 20:48:27 +0000 (22:48 +0200)
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Reviewed-by: Samuel Martin <s.martin49@gmail.com>
package/busybox/busybox.mk

index 090e17469072971d96a59cdf8c071844e23330e0..34eb1f36547d152fd2f97e41b992f1d302744572 100644 (file)
@@ -152,6 +152,13 @@ define BUSYBOX_INSTALL_WATCHDOG_SCRIPT
 endef
 endif
 
+ifeq ($(BR2_PACKAGE_LINUX_PAM),y)
+define BUSYBOX_LINUX_PAM
+       $(call KCONFIG_ENABLE_OPT,CONFIG_PAM,$(BUSYBOX_BUILD_CONFIG))
+endef
+BUSYBOX_DEPENDENCIES += linux-pam
+endif
+
 # Enable "noclobber" in install.sh, to prevent BusyBox from overwriting any
 # full-blown versions of apps installed by other packages with sym/hard links.
 define BUSYBOX_NOCLOBBER_INSTALL
@@ -165,6 +172,7 @@ define BUSYBOX_KCONFIG_FIXUP_CMDS
        $(BUSYBOX_PREFER_STATIC)
        $(BUSYBOX_SET_MDEV)
        $(BUSYBOX_SET_CRYPT_SHA)
+       $(BUSYBOX_LINUX_PAM)
        $(BUSYBOX_INTERNAL_SHADOW_PASSWORDS)
        $(BUSYBOX_SET_INIT)
        $(BUSYBOX_SET_WATCHDOG)