2005-02-11 21:42:52 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# e2fsprogs
|
|
|
|
#
|
|
|
|
#############################################################
|
2009-10-29 21:35:33 +01:00
|
|
|
|
2012-06-14 06:24:01 +02:00
|
|
|
E2FSPROGS_VERSION = 1.42.4
|
2011-01-07 16:24:53 +01:00
|
|
|
E2FSPROGS_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/e2fsprogs
|
2009-10-29 21:35:33 +01:00
|
|
|
|
|
|
|
E2FSPROGS_CONF_OPT = \
|
|
|
|
--disable-tls \
|
|
|
|
--enable-elf-shlibs \
|
2011-07-28 15:04:09 +02:00
|
|
|
$(if $(BR2_PACKAGE_E2FSPROGS_DEBUGFS),,--disable-debugfs) \
|
|
|
|
$(if $(BR2_PACKAGE_E2FSPROGS_E2IMAGE),,--disable-imager) \
|
2012-02-28 12:22:33 +01:00
|
|
|
$(if $(BR2_PACKAGE_E2FSPROGS_E4DEFRAG),,--disable-defrag) \
|
2011-07-28 15:04:09 +02:00
|
|
|
$(if $(BR2_PACKAGE_E2FSPROGS_RESIZE2FS),,--disable-resizer) \
|
2011-09-06 09:12:51 +02:00
|
|
|
--disable-uuidd \
|
2012-02-28 12:22:33 +01:00
|
|
|
--disable-libblkid \
|
2011-07-29 08:49:48 +02:00
|
|
|
--disable-libuuid \
|
2009-10-29 21:35:33 +01:00
|
|
|
--enable-fsck \
|
|
|
|
--disable-e2initrd-helper \
|
2010-03-22 14:29:00 +01:00
|
|
|
--disable-testio-debug
|
2009-10-29 21:35:33 +01:00
|
|
|
|
2011-07-28 23:26:29 +02:00
|
|
|
E2FSPROGS_DEPENDENCIES = host-pkg-config util-linux
|
2011-07-28 15:45:02 +02:00
|
|
|
|
2009-10-29 21:35:33 +01:00
|
|
|
E2FSPROGS_MAKE_OPT = \
|
|
|
|
LDCONFIG=true
|
|
|
|
|
2010-03-02 22:33:55 +01:00
|
|
|
define HOST_E2FSPROGS_INSTALL_CMDS
|
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install install-libs
|
|
|
|
endef
|
2012-01-18 10:55:36 +01:00
|
|
|
# we don't have a host-util-linux
|
|
|
|
HOST_E2FSPROGS_DEPENDENCIES = host-pkg-config
|
2010-03-02 22:33:55 +01:00
|
|
|
|
2009-10-29 21:35:33 +01:00
|
|
|
# binaries to keep or remove
|
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_BADBLOCKS) += usr/sbin/badblocks
|
|
|
|
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
|
2012-01-26 17:51:29 +01:00
|
|
|
E2FSPROGS_BINTARGETS_$(BR2_PACKAGE_E2FSPROGS_E4DEFRAG) += usr/sbin/e4defrag
|
2009-10-29 21:35:33 +01:00
|
|
|
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_UUIDGEN) += usr/bin/uuidgen
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2010-09-01 22:52:48 +02:00
|
|
|
define E2FSPROGS_TARGET_REMOVE_UNNEEDED
|
2009-10-29 21:35:33 +01:00
|
|
|
rm -f $(addprefix $(TARGET_DIR)/, $(E2FSPROGS_BINTARGETS_))
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/, $(E2FSPROGS_TXTTARGETS_))
|
2010-09-01 22:52:48 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_REMOVE_UNNEEDED
|
|
|
|
|
|
|
|
define E2FSPROGS_TARGET_MKE2FS_SYMLINKS
|
|
|
|
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
|
|
|
|
endef
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_E2FSPROGS_MKE2FS),y)
|
2010-09-01 22:52:48 +02:00
|
|
|
E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_MKE2FS_SYMLINKS
|
2008-02-25 00:02:56 +01:00
|
|
|
endif
|
2010-09-01 22:52:48 +02:00
|
|
|
|
|
|
|
define E2FSPROGS_TARGET_E2FSCK_SYMLINKS
|
|
|
|
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
|
|
|
|
endef
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_E2FSPROGS_E2FSCK),y)
|
2010-09-01 22:52:48 +02:00
|
|
|
E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_E2FSCK_SYMLINKS
|
2008-02-25 00:02:56 +01:00
|
|
|
endif
|
2010-09-01 22:52:48 +02:00
|
|
|
|
|
|
|
define E2FSPROGS_TARGET_TUNE2FS_SYMLINK
|
|
|
|
ln -sf e2label $(TARGET_DIR)/usr/sbin/tune2fs
|
|
|
|
endef
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_E2FSPROGS_TUNE2FS),y)
|
2010-09-01 22:52:48 +02:00
|
|
|
E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_TUNE2FS_SYMLINK
|
2008-02-25 00:02:56 +01:00
|
|
|
endif
|
2010-09-01 22:52:48 +02:00
|
|
|
|
|
|
|
define E2FSPROGS_TARGET_FINDFS_SYMLINK
|
|
|
|
ln -sf e2label $(TARGET_DIR)/usr/sbin/findfs
|
|
|
|
endef
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_E2FSPROGS_FINDFS),y)
|
2010-09-01 22:52:48 +02:00
|
|
|
E2FSPROGS_POST_INSTALL_TARGET_HOOKS += E2FSPROGS_TARGET_FINDFS_SYMLINK
|
2009-12-21 08:18:32 +01:00
|
|
|
endif
|
2010-09-01 22:52:48 +02:00
|
|
|
|
2011-09-29 21:57:43 +02:00
|
|
|
$(eval $(call AUTOTARGETS))
|
|
|
|
$(eval $(call AUTOTARGETS,host))
|