dadad95190
If I understand you correctly, you want the ncurses development headers on the target. a patch for this (named target_headers.patch and includes similar options for a few other libs in buildroot) can be found at: http://www.zelow.no/floppyfw/download/Development/Patches/buildroot/ (a few packages there aswell) it will add an option to put headers on target for ncurses, zlib and openssl. Thomas.
95 lines
3.0 KiB
Makefile
95 lines
3.0 KiB
Makefile
#############################################################
|
|
#
|
|
# util-linux
|
|
#
|
|
#############################################################
|
|
UTIL-LINUX_SOURCE:=util-linux_2.12.orig.tar.gz
|
|
UTIL-LINUX_SITE:=http://ftp.debian.org/debian/pool/main/u/util-linux/
|
|
UTIL-LINUX_PATCH:=util-linux_2.12-10.diff.gz
|
|
UTIL-LINUX_CAT:=zcat
|
|
UTIL-LINUX_DIR:=$(BUILD_DIR)/util-linux-2.12
|
|
UTIL-LINUX_BINARY:=$(UTIL-LINUX_DIR)/misc-utils/mcookie
|
|
UTIL-LINUX_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/mcookie
|
|
|
|
$(DL_DIR)/$(UTIL-LINUX_SOURCE):
|
|
$(WGET) -P $(DL_DIR) $(UTIL-LINUX_SITE)/$(UTIL-LINUX_SOURCE)
|
|
|
|
$(DL_DIR)/$(UTIL-LINUX_PATCH):
|
|
$(WGET) -P $(DL_DIR) $(UTIL-LINUX_SITE)/$(UTIL-LINUX_PATCH)
|
|
|
|
$(UTIL-LINUX_DIR)/.unpacked: $(DL_DIR)/$(UTIL-LINUX_SOURCE) $(DL_DIR)/$(UTIL-LINUX_PATCH)
|
|
$(UTIL-LINUX_CAT) $(DL_DIR)/$(UTIL-LINUX_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
$(UTIL-LINUX_CAT) $(DL_DIR)/$(UTIL-LINUX_PATCH) | patch -p1 -d $(UTIL-LINUX_DIR)
|
|
toolchain/patch-kernel.sh $(UTIL-LINUX_DIR) package/util-linux/ util-linux\*.patch
|
|
ifneq ($(BR2_LARGEFILE),y)
|
|
$(SED) "/D_FILE_OFFSET_BITS/ d" $(UTIL-LINUX_DIR)/MCONFIG
|
|
endif
|
|
touch $(UTIL-LINUX_DIR)/.unpacked
|
|
|
|
$(UTIL-LINUX_DIR)/.configured: $(UTIL-LINUX_DIR)/.unpacked
|
|
(cd $(UTIL-LINUX_DIR); rm -rf config.cache; \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
./configure \
|
|
--target=$(GNU_TARGET_NAME) \
|
|
--prefix=/usr \
|
|
--exec-prefix=/usr \
|
|
--bindir=/usr/bin \
|
|
--sbindir=/usr/sbin \
|
|
--libexecdir=/usr/lib \
|
|
--sysconfdir=/etc \
|
|
--datadir=/usr/share \
|
|
--localstatedir=/var \
|
|
--mandir=/usr/man \
|
|
--infodir=/usr/info \
|
|
$(DISABLE_NLS) \
|
|
$(DISABLE_LARGEFILE) \
|
|
ARCH=$(ARCH) \
|
|
);
|
|
$(SED) "s,^INSTALLSUID=.*,INSTALLSUID=\\$$\(INSTALL\) -m \\$$\(BINMODE\)," \
|
|
$(UTIL-LINUX_DIR)/MCONFIG
|
|
$(SED) "s,^USE_TTY_GROUP=.*,USE_TTY_GROUP=no," $(UTIL-LINUX_DIR)/MCONFIG
|
|
touch $(UTIL-LINUX_DIR)/.configured
|
|
|
|
$(UTIL-LINUX_BINARY): $(UTIL-LINUX_DIR)/.configured
|
|
$(MAKE) \
|
|
-C $(UTIL-LINUX_DIR) \
|
|
ARCH=$(ARCH) \
|
|
CC=$(TARGET_CC) \
|
|
OPT="$(TARGET_CFLAGS)" \
|
|
HAVE_SLANG="NO"
|
|
|
|
$(UTIL-LINUX_TARGET_BINARY): $(UTIL-LINUX_BINARY)
|
|
$(MAKE) ARCH=$(ARCH) DESTDIR=$(TARGET_DIR) USE_TTY_GROUP=no -C $(UTIL-LINUX_DIR) install
|
|
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/share/info \
|
|
$(TARGET_DIR)/usr/share/man $(TARGET_DIR)/usr/share/doc
|
|
|
|
#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: uclibc busybox $(UTIL-LINUX_TARGET_BINARY)
|
|
else
|
|
util-linux: uclibc $(UTIL-LINUX_TARGET_BINARY)
|
|
endif
|
|
|
|
|
|
util-linux-source: $(DL_DIR)/$(UTIL-LINUX_SOURCE)
|
|
|
|
util-linux-clean:
|
|
#There is no working 'uninstall' target. Just skip it...
|
|
#$(MAKE) DESTDIR=$(TARGET_DIR) -C $(UTIL-LINUX_DIR) uninstall
|
|
-$(MAKE) -C $(UTIL-LINUX_DIR) clean
|
|
|
|
util-linux-dirclean:
|
|
rm -rf $(UTIL-LINUX_DIR)
|
|
|
|
|
|
#############################################################
|
|
#
|
|
# Toplevel Makefile options
|
|
#
|
|
#############################################################
|
|
ifeq ($(strip $(BR2_PACKAGE_UTIL-LINUX)),y)
|
|
TARGETS+=util-linux
|
|
endif
|