aboutsummaryrefslogtreecommitdiff
path: root/package/util-linux
diff options
context:
space:
mode:
authorGravatar Peter Seiderer <ps.report@gmx.net>2014-10-21 21:32:36 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-10-22 21:08:41 +0200
commitb1c0d8142a99d0c72116f0894d1f3e65e4210d3f (patch)
tree551110d12375cb6ff6730674f3fc7a873faeb926 /package/util-linux
parentd4294df577a52537f66a12e0be4aa8854f8fb4a5 (diff)
downloadbuildroot-b1c0d8142a99d0c72116f0894d1f3e65e4210d3f.tar.gz
buildroot-b1c0d8142a99d0c72116f0894d1f3e65e4210d3f.tar.bz2
util-linux: use configure option instead of patching makefile
Use --disable-all-programs configure option instead of sed base patching of Makefile.am in case no util-linux binaries are selected. Suggested by Thomas Petazzoni ([1]). With this patch applied the following libs are no longer build by default: util-linux-2.25.1/.libs/libfdisk.a util-linux-2.25.1/.libs/libsmartcols.a util-linux-2.25.1/.libs/libsmartcols.so.1.1.0 [1] http://lists.busybox.net/pipermail/buildroot/2014-October/109818.html Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/util-linux')
-rw-r--r--package/util-linux/util-linux.mk8
1 files changed, 1 insertions, 7 deletions
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index ebbab615e8..1d52b5048f 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -100,13 +100,7 @@ HOST_UTIL_LINUX_CONF_OPTS += \
# Avoid building the tools if they are disabled since we can't install on
# a per-directory basis.
ifeq ($(BR2_PACKAGE_UTIL_LINUX_BINARIES),)
-define UTIL_LINUX_DISABLE_TOOLS
- $(SED) '/schedutils/d' -e '/text-utils/d' -e '/term-utils/d' \
- -e '/login-utils/d' -e '/mount-deprecated/d' \
- -e '/sys-utils/d' -e '/misc-utils/d' -e '/disk-utils/d' \
- -e '/fdisks/d' $(@D)/Makefile.am
-endef
-UTIL_LINUX_PRE_PATCH_HOOKS += UTIL_LINUX_DISABLE_TOOLS
+UTIL_LINUX_CONF_OPTS += --disable-all-programs
endif
# Install PAM configuration files