util-linux: Subpackage for blkdiscard
Adding subpackage to make it possible to enable blkdiscard utility. Signed-off-by: Michal Hrusecky <Michal.Hrusecky@nic.cz> SVN-Revision: 48707
This commit is contained in:
		| @@ -137,6 +137,18 @@ define Package/agetty/description | |||||||
|  /bin/login command |  /bin/login command | ||||||
| endef | 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 | define Package/blkid | ||||||
| $(call Package/util-linux/Default) | $(call Package/util-linux/Default) | ||||||
|   TITLE:=locate/print block device attributes |   TITLE:=locate/print block device attributes | ||||||
| @@ -462,6 +474,11 @@ define Package/agetty/install | |||||||
| 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/agetty $(1)/usr/sbin/ | 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/agetty $(1)/usr/sbin/ | ||||||
| endef | endef | ||||||
|  |  | ||||||
|  | define Package/blkdiscard/install | ||||||
|  | 	$(INSTALL_DIR) $(1)/usr/sbin | ||||||
|  | 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/blkdiscard $(1)/usr/sbin/ | ||||||
|  | endef | ||||||
|  |  | ||||||
| define Package/blkid/install | define Package/blkid/install | ||||||
| 	$(INSTALL_DIR) $(1)/usr/sbin | 	$(INSTALL_DIR) $(1)/usr/sbin | ||||||
| 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/blkid $(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,libsmartcols)) | ||||||
| $(eval $(call BuildPackage,libuuid)) | $(eval $(call BuildPackage,libuuid)) | ||||||
| $(eval $(call BuildPackage,agetty)) | $(eval $(call BuildPackage,agetty)) | ||||||
|  | $(eval $(call BuildPackage,blkdiscard)) | ||||||
| $(eval $(call BuildPackage,blkid)) | $(eval $(call BuildPackage,blkid)) | ||||||
| $(eval $(call BuildPackage,cal)) | $(eval $(call BuildPackage,cal)) | ||||||
| $(eval $(call BuildPackage,cfdisk)) | $(eval $(call BuildPackage,cfdisk)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin