2005-02-11 21:42:52 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# e2fsprogs
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
E2FSPROGS_VERSION:=1.39
|
|
|
|
E2FSPROGS_SOURCE=e2fsprogs-$(E2FSPROGS_VERSION).tar.gz
|
2005-06-09 14:15:00 +02:00
|
|
|
E2FSPROGS_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/e2fsprogs
|
2007-07-11 16:06:06 +02:00
|
|
|
E2FSPROGS_DIR=$(BUILD_DIR)/e2fsprogs-$(E2FSPROGS_VERSION)
|
2006-10-01 17:17:52 +02:00
|
|
|
E2FSPROGS_CAT:=$(ZCAT)
|
2005-02-11 21:42:52 +01:00
|
|
|
E2FSPROGS_BINARY:=misc/mke2fs
|
|
|
|
E2FSPROGS_TARGET_BINARY:=sbin/mke2fs
|
|
|
|
|
2005-09-13 01:00:36 +02:00
|
|
|
E2FSPROGS_MISC_STRIP:= \
|
|
|
|
badblocks blkid chattr dumpe2fs filefrag fsck logsave \
|
|
|
|
lsattr mke2fs mklost+found tune2fs uuidgen
|
|
|
|
|
2005-02-11 21:42:52 +01:00
|
|
|
$(DL_DIR)/$(E2FSPROGS_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(E2FSPROGS_SITE)/$(E2FSPROGS_SOURCE)
|
|
|
|
|
|
|
|
e2fsprogs-source: $(DL_DIR)/$(E2FSPROGS_SOURCE)
|
|
|
|
|
|
|
|
$(E2FSPROGS_DIR)/.unpacked: $(DL_DIR)/$(E2FSPROGS_SOURCE)
|
|
|
|
$(E2FSPROGS_CAT) $(DL_DIR)/$(E2FSPROGS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-06-24 10:36:13 +02:00
|
|
|
toolchain/patch-kernel.sh $(E2FSPROGS_DIR) package/e2fsprogs/ e2fsprogs\*.patch
|
2007-03-07 15:32:22 +01:00
|
|
|
$(CONFIG_UPDATE) $(E2FSPROGS_DIR)/config
|
2007-05-15 14:50:04 +02:00
|
|
|
touch $@
|
2005-02-11 21:42:52 +01:00
|
|
|
|
|
|
|
$(E2FSPROGS_DIR)/.configured: $(E2FSPROGS_DIR)/.unpacked
|
|
|
|
(cd $(E2FSPROGS_DIR); rm -rf config.cache; \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2005-02-11 21:42:52 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--with-cc=$(TARGET_CC) \
|
|
|
|
--with-linker=$(TARGET_CROSS)ld \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
2005-02-12 05:32:48 +01:00
|
|
|
--bindir=/bin \
|
|
|
|
--sbindir=/sbin \
|
2007-01-14 04:52:21 +01:00
|
|
|
--libdir=/lib \
|
2005-02-11 21:42:52 +01:00
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/man \
|
|
|
|
--infodir=/usr/info \
|
2005-05-16 19:38:29 +02:00
|
|
|
--enable-elf-shlibs --enable-dynamic-e2fsck --disable-swapfs \
|
2005-02-11 21:42:52 +01:00
|
|
|
--disable-debugfs --disable-imager \
|
2005-02-12 01:26:27 +01:00
|
|
|
--disable-resizer --enable-fsck \
|
2005-09-13 01:00:36 +02:00
|
|
|
--disable-e2initrd-helper \
|
2005-02-12 01:26:27 +01:00
|
|
|
--without-catgets $(DISABLE_NLS) \
|
2005-07-12 21:53:12 +02:00
|
|
|
$(DISABLE_LARGEFILE) \
|
2005-02-11 21:42:52 +01:00
|
|
|
);
|
2007-05-15 14:50:04 +02:00
|
|
|
touch $@
|
2005-02-11 21:42:52 +01:00
|
|
|
|
|
|
|
$(E2FSPROGS_DIR)/$(E2FSPROGS_BINARY): $(E2FSPROGS_DIR)/.configured
|
2005-07-20 09:20:27 +02:00
|
|
|
$(MAKE1) PATH=$(TARGET_PATH) -C $(E2FSPROGS_DIR)
|
2005-09-13 01:00:36 +02:00
|
|
|
( \
|
|
|
|
cd $(E2FSPROGS_DIR)/misc ; \
|
|
|
|
$(STRIP) $(E2FSPROGS_MISC_STRIP) ; \
|
|
|
|
)
|
|
|
|
$(STRIP) $(E2FSPROGS_DIR)/lib/lib*.so.*.*
|
2005-02-11 21:42:52 +01:00
|
|
|
touch -c $(E2FSPROGS_DIR)/$(E2FSPROGS_BINARY)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(E2FSPROGS_TARGET_BINARY): $(E2FSPROGS_DIR)/$(E2FSPROGS_BINARY)
|
2005-07-20 09:20:27 +02:00
|
|
|
$(MAKE1) PATH=$(TARGET_PATH) DESTDIR=$(TARGET_DIR) -C $(E2FSPROGS_DIR) install
|
2007-05-15 14:50:04 +02:00
|
|
|
rm -rf ${TARGET_DIR}/sbin/mkfs.ext[23] ${TARGET_DIR}/sbin/fsck.ext[23] \
|
|
|
|
${TARGET_DIR}/sbin/findfs ${TARGET_DIR}/sbin/tune2fs
|
|
|
|
ln -sf mke2fs ${TARGET_DIR}/sbin/mkfs.ext2
|
|
|
|
ln -sf mke2fs ${TARGET_DIR}/sbin/mkfs.ext3
|
|
|
|
ln -sf e2fsck ${TARGET_DIR}/sbin/fsck.ext2
|
|
|
|
ln -sf e2fsck ${TARGET_DIR}/sbin/fsck.ext3
|
|
|
|
ln -sf e2label ${TARGET_DIR}/sbin/tune2fs
|
|
|
|
ln -sf e2label ${TARGET_DIR}/sbin/findfs
|
2005-02-11 21:42:52 +01:00
|
|
|
rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
|
|
|
|
$(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
|
|
|
|
touch -c $(TARGET_DIR)/$(E2FSPROGS_TARGET_BINARY)
|
|
|
|
|
|
|
|
e2fsprogs: uclibc $(TARGET_DIR)/$(E2FSPROGS_TARGET_BINARY)
|
|
|
|
|
|
|
|
e2fsprogs-clean:
|
2005-02-12 01:26:27 +01:00
|
|
|
$(MAKE1) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(E2FSPROGS_DIR) uninstall
|
|
|
|
-$(MAKE1) -C $(E2FSPROGS_DIR) clean
|
2005-02-11 21:42:52 +01:00
|
|
|
|
|
|
|
e2fsprogs-dirclean:
|
|
|
|
rm -rf $(E2FSPROGS_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_E2FSPROGS)),y)
|
|
|
|
TARGETS+=e2fsprogs
|
|
|
|
endif
|
|
|
|
|