aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Carlos Santos <casantos@datacom.ind.br>2018-01-25 22:16:52 -0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-01-31 11:52:12 +0100
commitc4ccf7619536cf323c61121160a8ca74d259e1c6 (patch)
tree5267c4a66fd39a2bc2955fad9c3704f65eec4e85
parentc58c9138dfc8d33e086931343106251b90e99e63 (diff)
downloadbuildroot-c4ccf7619536cf323c61121160a8ca74d259e1c6.tar.gz
buildroot-c4ccf7619536cf323c61121160a8ca74d259e1c6.tar.bz2
util-linux: disable useless programs in the host package
Disable all programs that depend on ncurses, as well as utilities that are useless on the host: agetty, chfn-chsh, chmem, login, lslogins, mesg, more, newgrp, nologin, nsenter, pg, rfkill, schedutils, setpriv, setterm, su, sulogin, tunelp, ul, unshare, uuidd, vipw, wall, wdctl, write, zramctl. Also add dependency on host-zlib if host cramfs utils are to be built. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit 67170b76af912bebcdab3aa88a4ac9e5b35d6273) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/util-linux/util-linux.mk33
1 files changed, 31 insertions, 2 deletions
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index 8464288600..5a021bea67 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -164,8 +164,37 @@ HOST_UTIL_LINUX_CONF_OPTS += \
ifeq ($(BR2_PACKAGE_HOST_UTIL_LINUX),y)
HOST_UTIL_LINUX_CONF_OPTS += --disable-makeinstall-chown
-# disable more command because of ncurses dependency
-HOST_UTIL_LINUX_CONF_OPTS += --disable-more
+# disable commands that have ncurses dependency, as well as
+# other ones that are useless on the host
+HOST_UTIL_LINUX_CONF_OPTS += \
+ --disable-agetty \
+ --disable-chfn-chsh \
+ --disable-chmem \
+ --disable-login \
+ --disable-lslogins \
+ --disable-mesg \
+ --disable-more \
+ --disable-newgrp \
+ --disable-nologin \
+ --disable-nsenter \
+ --disable-pg \
+ --disable-rfkill \
+ --disable-schedutils \
+ --disable-setpriv \
+ --disable-setterm \
+ --disable-su \
+ --disable-sulogin \
+ --disable-tunelp \
+ --disable-ul \
+ --disable-unshare \
+ --disable-uuidd \
+ --disable-vipw \
+ --disable-wall \
+ --disable-wdctl \
+ --disable-write \
+ --disable-zramctl
+# Used by cramfs utils
+HOST_UTIL_LINUX_DEPENDENCIES += host-zlib
else
HOST_UTIL_LINUX_CONF_OPTS += --disable-all-programs
endif