diff options
author | Hamish Moffatt <hamish@cloud.net.au> | 2008-02-24 23:02:56 +0000 |
---|---|---|
committer | Hamish Moffatt <hamish@cloud.net.au> | 2008-02-24 23:02:56 +0000 |
commit | ec7d71f064f86ad863af8dece9be9491825b14e1 (patch) | |
tree | e9d820ce8cbe529909314d042e73c5766f58a820 | |
parent | a6bf612a6aaed41cdb4f60e8555384557cceddf5 (diff) | |
download | buildroot-novena-ec7d71f064f86ad863af8dece9be9491825b14e1.tar.gz buildroot-novena-ec7d71f064f86ad863af8dece9be9491825b14e1.zip |
Allow selection of e2fsprogs to install in the target
-rw-r--r-- | package/e2fsprogs/Config.in | 78 | ||||
-rw-r--r-- | package/e2fsprogs/e2fsprogs.mk | 25 |
2 files changed, 103 insertions, 0 deletions
diff --git a/package/e2fsprogs/Config.in b/package/e2fsprogs/Config.in index 63ec3a3cc..a82bb1a94 100644 --- a/package/e2fsprogs/Config.in +++ b/package/e2fsprogs/Config.in @@ -3,3 +3,81 @@ config BR2_PACKAGE_E2FSPROGS default n help The EXT2 file system utilities and libraries + +config BR2_PACKAGE_E2FSPROGS_BADBLOCKS + bool "badblocks" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_BLKID + bool "blkid" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_CHATTR + bool "chattr" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_DUMPE2FS + bool "dumpe2fs" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_E2FSCK + bool "e2fsck" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_E2LABEL + bool "e2label" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_FILEFRAG + bool "filefrag" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_FINDFS + bool "findfs" + default y + depends on BR2_PACKAGE_E2FSPROGS + select BR2_PACKAGE_E2FSPROGS_E2LABEL + +config BR2_PACKAGE_E2FSPROGS_FSCK + bool "fsck" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_LOGSAVE + bool "logsave" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_LSATTR + bool "chattr" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_MKE2FS + bool "mke2fs" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND + bool "mklost+found" + default y + depends on BR2_PACKAGE_E2FSPROGS + +config BR2_PACKAGE_E2FSPROGS_TUNE2FS + bool "tune2fs" + default y + depends on BR2_PACKAGE_E2FSPROGS + select BR2_PACKAGE_E2FSPROGS_E2LABEL + +config BR2_PACKAGE_E2FSPROGS_UUIDGEN + bool "uuidgen" + default y + depends on BR2_PACKAGE_E2FSPROGS + diff --git a/package/e2fsprogs/e2fsprogs.mk b/package/e2fsprogs/e2fsprogs.mk index 0fd2d5de5..8ee5da0ef 100644 --- a/package/e2fsprogs/e2fsprogs.mk +++ b/package/e2fsprogs/e2fsprogs.mk @@ -68,6 +68,20 @@ $(E2FSPROGS_DIR)/$(E2FSPROGS_BINARY): $(E2FSPROGS_DIR)/.configured #$(STRIPCMD) $(E2FSPROGS_DIR)/lib/lib*.so.*.* touch -c $@ +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_BADBLOCKS)) += ${TARGET_DIR}/sbin/badblocks +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_BLKID)) += ${TARGET_DIR}/sbin/blkid +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_CHATTR)) += ${TARGET_DIR}/bin/chattr +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_DUMPE2FS)) += ${TARGET_DIR}/sbin/dumpe2fs +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_E2LABEL)) += ${TARGET_DIR}/sbin/e2label +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_E2FSCK)) += ${TARGET_DIR}/sbin/e2fsck +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_FILEFRAG)) += ${TARGET_DIR}/sbin/filefrag +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_FSCK)) += ${TARGET_DIR}/sbin/fsck +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_LOGSAVE)) += ${TARGET_DIR}/sbin/logsave +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_LSATTR)) += ${TARGET_DIR}/bin/lsattr +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_MKE2FS)) += ${TARGET_DIR}/sbin/mke2fs +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_MKLOSTFOUND)) += ${TARGET_DIR}/sbin/mklost+found +E2FSPROGS_RM$(strip $(BR2_PACKAGE_E2FSPROGS_UUIDGEN)) += ${TARGET_DIR}/bin/uuidgen + $(TARGET_DIR)/$(E2FSPROGS_TARGET_BINARY): $(E2FSPROGS_DIR)/$(E2FSPROGS_BINARY) $(MAKE1) PATH=$(TARGET_PATH) DESTDIR=$(TARGET_DIR) LDCONFIG=true \ -C $(E2FSPROGS_DIR) install @@ -75,12 +89,23 @@ $(TARGET_DIR)/$(E2FSPROGS_TARGET_BINARY): $(E2FSPROGS_DIR)/$(E2FSPROGS_BINARY) ${TARGET_DIR}/sbin/fsck.ext[23] \ ${TARGET_DIR}/sbin/findfs \ ${TARGET_DIR}/sbin/tune2fs +ifneq ($(strip $(E2FSPROGS_RM)),) + rm -rf $(E2FSPROGS_RM) +endif +ifeq ($(strip $(BR2_PACKAGE_E2FSPROGS_MKE2FS)),y) ln -sf mke2fs ${TARGET_DIR}/sbin/mkfs.ext2 ln -sf mke2fs ${TARGET_DIR}/sbin/mkfs.ext3 +endif +ifeq ($(strip $(BR2_PACKAGE_E2FSPROGS_E2FSCK)),y) ln -sf e2fsck ${TARGET_DIR}/sbin/fsck.ext2 ln -sf e2fsck ${TARGET_DIR}/sbin/fsck.ext3 +endif +ifeq ($(strip $(BR2_PACKAGE_E2FSPROGS_TUNE2FS)),y) ln -sf e2label ${TARGET_DIR}/sbin/tune2fs +endif +ifeq ($(strip $(BR2_PACKAGE_E2FSPROGS_FINDFS)),y) ln -sf e2label ${TARGET_DIR}/sbin/findfs +endif ifneq ($(BR2_HAVE_INFOPAGES),y) rm -rf $(TARGET_DIR)/usr/share/info endif |