From patchwork Sun Nov 18 00:15:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: busybox: needs linux-pam dependency added if using custom busybox .config & busybox login applet Date: Sat, 17 Nov 2012 14:15:13 -0000 From: =?utf-8?q?Stefan_Fr=C3=B6berg_=3Cstefan=2Efroberg=40petroprogram=2Eco?= =?utf-8?q?m=3E?= X-Patchwork-Id: 199891 Message-Id: <1353197713-20796-1-git-send-email-stefan.froberg@petroprogram.com> To: buildroot@busybox.net If BusyBox custom .config has login applet (CONFIG_LOGIN) enabled then the build process will complain about missing Linux PAM headers. This will add the needed linux-pam dependency Signed-off-by: Stefan Fröberg --- package/busybox/busybox.mk | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 549e150..f2a102a 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -30,6 +30,13 @@ BUSYBOX_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/ BUSYBOX_LDFLAGS += -ltirpc endif +# linux-pam must be built first if user has custom +# BusyBox .config file and that file has also login +# applet (CONFIG_LOGIN) enabled. +ifeq ($(shell sed -n "s/CONFIG_LOGIN=\(y\)/\1/p" $(BR2_PACKAGE_BUSYBOX_CONFIG)),y) +BUSYBOX_DEPENDENCIES += linux-pam +endif + BUSYBOX_BUILD_CONFIG = $(BUSYBOX_DIR)/.config # Allows the build system to tweak CFLAGS BUSYBOX_MAKE_ENV = $(TARGET_MAKE_ENV) CFLAGS="$(BUSYBOX_CFLAGS)"