2003-03-10 18:58:07 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# util-linux
|
|
|
|
#
|
|
|
|
#############################################################
|
2011-07-22 16:53:12 +02:00
|
|
|
UTIL_LINUX_VERSION = $(UTIL_LINUX_VERSION_MAJOR).1
|
|
|
|
UTIL_LINUX_VERSION_MAJOR = 2.19
|
|
|
|
UTIL_LINUX_SOURCE = util-linux-$(UTIL_LINUX_VERSION).tar.bz2
|
|
|
|
UTIL_LINUX_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/util-linux/v$(UTIL_LINUX_VERSION_MAJOR)
|
2011-07-27 11:49:46 +02:00
|
|
|
UTIL_LINUX_AUTORECONF = YES
|
2011-07-29 08:36:55 +02:00
|
|
|
UTIL_LINUX_INSTALL_STAGING = YES
|
2011-07-27 11:49:46 +02:00
|
|
|
UTIL_LINUX_DEPENDENCIES = host-pkg-config
|
2003-03-10 18:58:07 +01:00
|
|
|
|
2011-07-22 16:53:12 +02:00
|
|
|
UTIL_LINUX_CONF_OPT += --disable-rpath --disable-makeinstall-chown
|
2009-03-03 09:52:56 +01:00
|
|
|
|
2011-07-22 16:53:12 +02:00
|
|
|
# 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)
|
|
|
|
UTIL_LINUX_DEPENDENCIES += busybox
|
2009-08-30 22:01:23 +02:00
|
|
|
endif
|
|
|
|
|
2010-08-10 19:15:26 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
2011-07-22 16:53:12 +02:00
|
|
|
UTIL_LINUX_DEPENDENCIES += ncurses
|
|
|
|
else
|
|
|
|
UTIL_LINUX_CONF_OPT += --without-ncurses
|
2004-12-27 22:49:53 +01:00
|
|
|
endif
|
|
|
|
|
2011-08-09 16:15:22 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBINTL),y)
|
|
|
|
UTIL_LINUX_DEPENDENCIES += libintl
|
|
|
|
UTIL_LINUX_MAKE_OPT += LIBS=-lintl
|
|
|
|
endif
|
2003-03-10 18:58:07 +01:00
|
|
|
|
2011-07-22 16:53:12 +02:00
|
|
|
#############################################
|
2005-02-10 04:06:39 +01:00
|
|
|
#
|
2011-07-22 16:53:12 +02:00
|
|
|
# disable default utilities
|
2005-02-10 04:06:39 +01:00
|
|
|
#
|
2011-07-22 16:53:12 +02:00
|
|
|
UTIL_LINUX_CONF_OPT += \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_MOUNT),,--disable-mount) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_FSCK),,--disable-fsck) \
|
2011-07-29 13:38:49 +02:00
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),,--disable-libmount) \
|
2011-07-22 16:53:12 +02:00
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBUUID),,--disable-libuuid) \
|
2011-08-08 13:58:09 +02:00
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_UUIDD),,--disable-uuidd) \
|
2011-07-22 16:53:12 +02:00
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBBLKID),,--disable-libblkid) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_AGETTY),,--disable-agetty) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_CRAMFS),,--disable-cramfs) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_SWITCH_ROOT),,--disable-switch_root) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT),,--disable-pivot_root) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_FALLOCATE),,--disable-fallocate) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_UNSHARE),,--disable-unshare) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_RENAME),,--disable-rename) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS),,--disable-schedutils) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_WALL),,--disable-wall)
|
|
|
|
|
|
|
|
#############################################
|
|
|
|
#
|
|
|
|
# enable extra utilities
|
|
|
|
#
|
|
|
|
UTIL_LINUX_CONF_OPT += \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_ARCH),--enable-arch) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_INIT),--enable-init) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_KILL),--enable-kill) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LAST),--enable-last) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_MESG),--enable-mesg) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_PARTX),--enable-partx) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_RAW),--enable-raw) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_RESET),--enable-reset) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS),--enable-login-utils) \
|
|
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_WRITE),--enable-write)
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,util-linux))
|