diff options
author | John Crispin <blogic@openwrt.org> | 2016-02-12 08:30:56 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2016-02-12 08:30:56 +0000 |
commit | 85c2fa495a80d302a05589fd2e05728c76c616a2 (patch) | |
tree | 834e55e1c3e44353a084c5495b5ef378f585d722 /package/utils/util-linux | |
parent | e98e2fdb0ebdddfca723c6f1b3f7c7288ca4b7ff (diff) | |
download | master-187ad058-85c2fa495a80d302a05589fd2e05728c76c616a2.tar.gz master-187ad058-85c2fa495a80d302a05589fd2e05728c76c616a2.tar.bz2 master-187ad058-85c2fa495a80d302a05589fd2e05728c76c616a2.zip |
util-linux: Subpackage for blkdiscard
Adding subpackage to make it possible to enable blkdiscard utility.
Signed-off-by: Michal Hrusecky <Michal.Hrusecky@nic.cz>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48707 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/util-linux')
-rw-r--r-- | package/utils/util-linux/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/package/utils/util-linux/Makefile b/package/utils/util-linux/Makefile index eddbc2b77a..73903cd92d 100644 --- a/package/utils/util-linux/Makefile +++ b/package/utils/util-linux/Makefile @@ -137,6 +137,18 @@ define Package/agetty/description /bin/login command endef +define Package/blkdiscard +$(call Package/util-linux/Default) + TITLE:=discard sectors on a device + SUBMENU=disc +endef + +define Package/blkdiscard/description + The blkdiscard is used to discard device sectors. This is useful for + solid-state drivers (SSDs) and thinly-provisioned storage. Unlike fstrim, + this command is used directly on the block device. +endef + define Package/blkid $(call Package/util-linux/Default) TITLE:=locate/print block device attributes @@ -462,6 +474,11 @@ define Package/agetty/install $(INSTALL_BIN) $(PKG_BUILD_DIR)/agetty $(1)/usr/sbin/ endef +define Package/blkdiscard/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/blkdiscard $(1)/usr/sbin/ +endef + define Package/blkid/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/blkid $(1)/usr/sbin/ @@ -613,6 +630,7 @@ $(eval $(call BuildPackage,libmount)) $(eval $(call BuildPackage,libsmartcols)) $(eval $(call BuildPackage,libuuid)) $(eval $(call BuildPackage,agetty)) +$(eval $(call BuildPackage,blkdiscard)) $(eval $(call BuildPackage,blkid)) $(eval $(call BuildPackage,cal)) $(eval $(call BuildPackage,cfdisk)) |