summaryrefslogtreecommitdiff
path: root/package/util-linux
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-06-30 21:59:40 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-06-30 22:00:10 +0200
commit9f48ddf3bbd6c64b9d17e9e1ec755dce0b015f59 (patch)
tree68e201585960a62feea3a71fd123c69a12bc5cf0 /package/util-linux
parent4db00164ee4720068d6a7b222d918ef033c32069 (diff)
util-linux: disable programs if only libuuid and others required
Diffstat (limited to 'package/util-linux')
-rw-r--r--package/util-linux/Makefile21
1 files changed, 15 insertions, 6 deletions
diff --git a/package/util-linux/Makefile b/package/util-linux/Makefile
index 2b2db8e3f..e836cf7c8 100644
--- a/package/util-linux/Makefile
+++ b/package/util-linux/Makefile
@@ -69,26 +69,35 @@ TARGET_LDFLAGS+= -ltinfo
AUTOTOOL_STYLE:= autoreconf
CONFIGURE_ARGS+= --disable-use-tty-group \
--disable-chfn-chsh \
+ --disable-more \
--disable-su \
--disable-runuser \
--disable-schedutils \
+ --disable-setpriv \
+ --disable-setterm \
--disable-cramfs \
--disable-login \
--disable-eject \
+ --disable-switch_root \
+ --disable-nsenter \
+ --disable-unshare \
+ --disable-wall \
--without-python \
--without-systemd \
--without-user \
--enable-libfdisk \
--enable-libuuid \
--enable-libblkid \
- --enable-libmount \
- --enable-mount
+ --enable-libmount
+
+ifeq ($(ADK_PACKAGE_FDISK)$(ADK_PACKAGE_SFDISK)$(ADK_PACKAGE_CFDISK)$(ADK_PACKAGE_MKFS)$(ADK_PACKAGE_MOUNT)$(ADK_PACKAGE_SWAP_UTILS),)
+CONFIGURE_ARGS+= --disable-all-programs
+endif
+
FAKE_FLAGS+= INSTALLSUID="install -m 4755"
HOST_CONFIGURE_ARGS+= --enable-libuuid \
- --disable-use-tty-group \
- --disable-chfn-chsh \
- --disable-su \
- --disable-runuser
+ --disable-all-programs \
+ --disable-use-tty-group
fdisk-install:
$(INSTALL_DIR) $(IDIR_FDISK)/usr/sbin