2005-02-11 21:42:52 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# e2fsprogs
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-10-06 12:53:33 +02:00
|
|
|
E2FSPROGS_VERSION:=1.41.9
|
2007-07-11 16:06:06 +02:00
|
|
|
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
|
2005-02-11 21:42:52 +01:00
|
|
|
|
2009-10-29 21:35:33 +01:00
|
|
|
E2FSPROGS_AUTORECONF = NO
|
|
|
|
E2FSPROGS_LIBTOOL_PATCH = NO
|
|
|
|
|
|
|
|
E2FSPROGS_INSTALL_STAGING = YES
|
|
|
|
E2FSPROGS_INSTALL_TARGET = YES
|
|
|
|
|
|
|
|
E2FSPROGS_CONF_OPT = \
|
|
|
|
--disable-tls \
|
|
|
|
--enable-elf-shlibs \
|
|
|
|
--disable-debugfs \
|
|
|
|
--disable-imager \
|
|
|
|
--disable-resizer \
|
|
|
|
--enable-fsck \
|
|
|
|
--disable-e2initrd-helper \
|
|
|
|
--disable-testio-debug \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
$(DISABLE_LARGEFILE)
|
|
|
|
|
|
|
|
E2FSPROGS_MAKE_OPT = \
|
|
|
|
LDCONFIG=true
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,e2fsprogs))
|
|
|
|
|
|
|
|
# binaries to keep or remove
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_BADBLOCKS) += usr/sbin/badblocks
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_BLKID) += usr/sbin/blkid
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_CHATTR) += usr/bin/chattr
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_DUMPE2FS) += usr/sbin/dumpe2fs
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_E2FREEFRAG) += usr/sbin/e2freefrag
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_E2FSCK) += usr/sbin/e2fsck
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_E2LABEL) += usr/sbin/e2label
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_E2UNDO) += usr/sbin/e2undo
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_FILEFRAG) += usr/sbin/filefrag
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_FSCK) += usr/sbin/fsck
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_LOGSAVE) += usr/sbin/logsave
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_LSATTR) += usr/bin/lsattr
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_MKE2FS) += usr/sbin/mke2fs
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND) += usr/sbin/mklost+found
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_UUIDD) += usr/sbin/uuidd
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_UUIDGEN) += usr/bin/uuidgen
|
|
|
|
|
|
|
|
# libraries to keep or remove
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_LIBUUID) += usr/lib/libuuid.so*
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_LIBBLKID) += usr/lib/libblkid.so*
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_UTILS) += usr/lib/libcom_err.so*
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_UTILS) += usr/lib/libe2p.so*
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_UTILS) += usr/lib/libext2fs.so*
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_UTILS) += usr/lib/libss.so*
|
|
|
|
|
|
|
|
# files to remove
|
|
|
|
E2FSPROGS_TXTTARGETS_ = \
|
|
|
|
usr/sbin/mkfs.ext[234] \
|
|
|
|
usr/sbin/mkfs.ext4dev \
|
|
|
|
usr/sbin/fsck.ext[234] \
|
|
|
|
usr/sbin/fsck.ext4dev \
|
|
|
|
usr/sbin/findfs \
|
|
|
|
usr/sbin/tune2fs
|
|
|
|
|
|
|
|
$(E2FSPROGS_HOOK_POST_INSTALL):
|
|
|
|
$(call MESSAGE,"Post installing")
|
|
|
|
# strip binaries
|
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $(addprefix $(TARGET_DIR)/, $(E2FSPROGS_BINTARGETS_y))
|
|
|
|
# remove unneeded
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/, $(E2FSPROGS_BINTARGETS_))
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/, $(E2FSPROGS_TXTTARGETS_))
|
|
|
|
# make symlinks
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_E2FSPROGS_MKE2FS),y)
|
2009-10-29 21:35:33 +01:00
|
|
|
ln -sf mke2fs ${TARGET_DIR}/usr/sbin/mkfs.ext2
|
|
|
|
ln -sf mke2fs ${TARGET_DIR}/usr/sbin/mkfs.ext3
|
|
|
|
ln -sf mke2fs ${TARGET_DIR}/usr/sbin/mkfs.ext4
|
|
|
|
ln -sf mke2fs ${TARGET_DIR}/usr/sbin/mkfs.ext4dev
|
2008-02-25 00:02:56 +01:00
|
|
|
endif
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_E2FSPROGS_E2FSCK),y)
|
2009-10-29 21:35:33 +01:00
|
|
|
ln -sf e2fsck ${TARGET_DIR}/usr/sbin/fsck.ext2
|
|
|
|
ln -sf e2fsck ${TARGET_DIR}/usr/sbin/fsck.ext3
|
|
|
|
ln -sf e2fsck ${TARGET_DIR}/usr/sbin/fsck.ext4
|
|
|
|
ln -sf e2fsck ${TARGET_DIR}/usr/sbin/fsck.ext4dev
|
2008-02-25 00:02:56 +01:00
|
|
|
endif
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_E2FSPROGS_TUNE2FS),y)
|
2009-10-29 21:35:33 +01:00
|
|
|
ln -sf e2label ${TARGET_DIR}/usr/sbin/tune2fs
|
2008-02-25 00:02:56 +01:00
|
|
|
endif
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_E2FSPROGS_FINDFS),y)
|
2009-10-29 21:35:33 +01:00
|
|
|
ln -sf e2label ${TARGET_DIR}/usr/sbin/findfs
|
2005-02-11 21:42:52 +01:00
|
|
|
endif
|
2009-10-29 21:35:33 +01:00
|
|
|
touch $@
|
2009-07-29 19:13:46 +02:00
|
|
|
|