UTIL_LINUX_CONF_OPT += --disable-rpath --disable-makeinstall-chown
+# We don't want the host-busybox dependency to be added automatically
+HOST_UTIL_LINUX_DEPENDENCIES = host-pkg-config
+
# If both util-linux and busybox are selected, make certain util-linux
# wins the fight over who gets to have their utils actually installed
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
$(if $(BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS),--enable-login-utils) \
$(if $(BR2_PACKAGE_UTIL_LINUX_WRITE),--enable-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.
+HOST_UTIL_LINUX_CONF_OPT += \
+ --enable-libuuid \
+ --disable-mount --disable-fsck --disable-libmount \
+ --disable-uuidd --disable-libblkid --disable-agetty \
+ --disable-cramfs --disable-switch_root --disable-pivot_root \
+ --disable-fallocate --disable-unshare --disable-rename \
+ --disable-schedutils --disable-wall --disable-partx
+
$(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
# MKINSTALLDIRS comes from tweaked m4/nls.m4, but autoreconf uses staging
# one, so it disappears