summaryrefslogtreecommitdiffstats
path: root/package/util-linux
diff options
context:
space:
mode:
authorThierry Bultel <tbultel@free.fr>2014-12-10 22:02:01 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-10 23:12:55 +0100
commit2b18d093cd8a5baaf2e22ce13cc9e527c1937777 (patch)
treeecabcdd556a069596ec0b0efbf7dd286de8d521e /package/util-linux
parentc5f14b7ef62f179af586d19eeec5c172472c8ede (diff)
downloadbuildroot-2b18d093cd8a5baaf2e22ce13cc9e527c1937777.tar.gz
buildroot-2b18d093cd8a5baaf2e22ce13cc9e527c1937777.zip
util-linux: add an option to build host programs
Signed-off-by: Thierry Bultel <tbultel@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/util-linux')
-rw-r--r--package/util-linux/util-linux.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index dc10193f6e..e06fa9a8c4 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -91,11 +91,19 @@ UTIL_LINUX_CONF_OPTS += \
$(if $(BR2_PACKAGE_UTIL_LINUX_WRITE),--enable-write,--disable-write)
# In the host version of util-linux, we so far only require libuuid,
-# and none of the util-linux utilities, so we disable all of them.
+# and none of the util-linux utilities, so we disable all of them, unless
+# BR2_PACKAGE_HOST_UTIL_LINUX is set
+
HOST_UTIL_LINUX_CONF_OPTS += \
--enable-libuuid \
--disable-libblkid --disable-libmount \
- --disable-all-programs --without-ncurses
+ --without-ncurses
+
+ifeq ($(BR2_PACKAGE_HOST_UTIL_LINUX),y)
+HOST_UTIL_LINUX_CONF_OPTS += --disable-makeinstall-chown
+else
+HOST_UTIL_LINUX_CONF_OPTS += --disable-all-programs
+endif
# Avoid building the tools if they are disabled since we can't install on
# a per-directory basis.
OpenPOWER on IntegriCloud