2003-03-10 18:58:07 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# util-linux
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-03-03 09:52:56 +01:00
|
|
|
UTIL-LINUX_VERSION:=2.13-pre7
|
2007-07-11 16:06:06 +02:00
|
|
|
UTIL-LINUX_SOURCE:=util-linux-$(UTIL-LINUX_VERSION).tar.bz2
|
2009-03-26 10:29:09 +01:00
|
|
|
UTIL-LINUX_SITE:=$(BR2_KERNEL_MIRROR)/linux/utils/util-linux/testing
|
2007-07-11 16:06:06 +02:00
|
|
|
UTIL-LINUX_DIR:=$(BUILD_DIR)/util-linux-$(UTIL-LINUX_VERSION)
|
2006-11-17 16:43:51 +01:00
|
|
|
UTIL-LINUX_CAT:=$(BZCAT)
|
2007-01-14 04:52:21 +01:00
|
|
|
UTIL-LINUX_BINARY:=$(UTIL-LINUX_DIR)/misc-utils/chkdupexe
|
|
|
|
UTIL-LINUX_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/chkdupexe
|
2003-03-10 18:58:07 +01:00
|
|
|
|
2009-03-03 09:52:56 +01:00
|
|
|
# schedutils isn't support for all archs
|
|
|
|
ifneq ($(BR2_i386)$(BR2_powerpc)$(BR2_x86_64)$(BR2_ia64)$(BR2_alpha),)
|
|
|
|
UTIL-LINUX_SCHED_UTILS:=--enable-schedutils
|
|
|
|
else
|
|
|
|
UTIL-LINUX_SCHED_UTILS:=--disable-schedutils
|
|
|
|
endif
|
|
|
|
|
2010-05-24 21:17:55 +02:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
2010-05-14 09:44:03 +02:00
|
|
|
UTIL-LINUX_DEPENDENCIES += gettext libintl
|
2009-08-30 22:01:23 +02:00
|
|
|
UTIL-LINUX_MAKE_OPT = LIBS=-lintl
|
|
|
|
endif
|
|
|
|
|
2003-03-10 18:58:07 +01:00
|
|
|
$(DL_DIR)/$(UTIL-LINUX_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(UTIL-LINUX_SITE),$(UTIL-LINUX_SOURCE))
|
2003-03-10 18:58:07 +01:00
|
|
|
|
2005-12-29 12:27:31 +01:00
|
|
|
$(UTIL-LINUX_DIR)/.unpacked: $(DL_DIR)/$(UTIL-LINUX_SOURCE)
|
2004-10-09 23:19:47 +02:00
|
|
|
$(UTIL-LINUX_CAT) $(DL_DIR)/$(UTIL-LINUX_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-06-24 10:36:13 +02:00
|
|
|
toolchain/patch-kernel.sh $(UTIL-LINUX_DIR) package/util-linux/ util-linux\*.patch
|
2003-03-10 18:58:07 +01:00
|
|
|
touch $(UTIL-LINUX_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(UTIL-LINUX_DIR)/.configured: $(UTIL-LINUX_DIR)/.unpacked
|
|
|
|
(cd $(UTIL-LINUX_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-08-30 21:59:55 +02:00
|
|
|
ac_cv_lib_blkid_blkid_known_fstype=no \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2003-03-10 18:58:07 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
2009-03-03 09:52:56 +01:00
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--disable-use-tty-group \
|
|
|
|
--prefix=/ \
|
|
|
|
--exec-prefix=/ \
|
2003-03-10 18:58:07 +01:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2009-03-03 09:52:56 +01:00
|
|
|
$(UTIL-LINUX_SCHED_UTILS) \
|
2003-09-03 09:18:18 +02:00
|
|
|
$(DISABLE_NLS) \
|
2005-07-12 21:53:12 +02:00
|
|
|
$(DISABLE_LARGEFILE) \
|
2004-03-10 09:11:05 +01:00
|
|
|
ARCH=$(ARCH) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2003-03-10 18:58:07 +01:00
|
|
|
touch $(UTIL-LINUX_DIR)/.configured
|
|
|
|
|
|
|
|
$(UTIL-LINUX_BINARY): $(UTIL-LINUX_DIR)/.configured
|
2004-10-08 23:07:31 +02:00
|
|
|
$(MAKE) \
|
|
|
|
-C $(UTIL-LINUX_DIR) \
|
|
|
|
ARCH=$(ARCH) \
|
2010-07-06 09:27:32 +02:00
|
|
|
CC="$(TARGET_CC)" \
|
2004-10-08 23:07:31 +02:00
|
|
|
OPT="$(TARGET_CFLAGS)" \
|
2009-08-30 22:01:23 +02:00
|
|
|
$(UTIL-LINUX_MAKE_OPT) \
|
2004-10-08 23:07:31 +02:00
|
|
|
HAVE_SLANG="NO"
|
2003-03-10 18:58:07 +01:00
|
|
|
|
|
|
|
$(UTIL-LINUX_TARGET_BINARY): $(UTIL-LINUX_BINARY)
|
2004-10-08 23:07:31 +02:00
|
|
|
$(MAKE) ARCH=$(ARCH) DESTDIR=$(TARGET_DIR) USE_TTY_GROUP=no -C $(UTIL-LINUX_DIR) install
|
2004-10-08 23:51:44 +02:00
|
|
|
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/share/info \
|
|
|
|
$(TARGET_DIR)/usr/share/man $(TARGET_DIR)/usr/share/doc
|
2003-03-10 18:58:07 +01:00
|
|
|
|
2004-12-27 22:49:53 +01: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)
|
2009-08-31 22:11:36 +02:00
|
|
|
UTIL-LINUX_DEPENDENCIES := busybox $(UTIL-LINUX_DEPENDENCIES)
|
2004-12-27 22:49:53 +01:00
|
|
|
endif
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
util-linux: $(UTIL-LINUX_DEPENDENCIES) $(UTIL-LINUX_TARGET_BINARY)
|
2003-03-10 18:58:07 +01:00
|
|
|
|
2003-11-12 10:31:12 +01:00
|
|
|
util-linux-source: $(DL_DIR)/$(UTIL-LINUX_SOURCE)
|
|
|
|
|
2003-03-10 18:58:07 +01:00
|
|
|
util-linux-clean:
|
2007-08-22 14:35:41 +02:00
|
|
|
#There is no working 'uninstall' target. Just skip it...
|
2003-03-10 18:58:07 +01:00
|
|
|
#$(MAKE) DESTDIR=$(TARGET_DIR) -C $(UTIL-LINUX_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(UTIL-LINUX_DIR) clean
|
|
|
|
|
|
|
|
util-linux-dirclean:
|
|
|
|
rm -rf $(UTIL-LINUX_DIR)
|
|
|
|
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_UTIL-LINUX),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=util-linux
|
|
|
|
endif
|