[OpenWrt-Devel] [PATCH] [packages] util-linux: add blockdev
Matthew M. Dean
fireculex at gmail.com
Sun Aug 3 18:41:19 EDT 2014
From: Matthew M. Dean <fireculex at gmail.com>
Adds blockdev from the util-linux package to the menuconfig. The busybox
blockdev does not support functions like setting read-ahead.
Signed-off-by: Matthew M. Dean <fireculex at gmail.com>
--- a/package/utils/util-linux/Makefile
+++ b/package/utils/util-linux/Makefile
@@ -128,6 +128,17 @@ define Package/blkid/description
library.
endef
+define Package/blockdev
+$(call Package/util-linux/Default)
+ TITLE:=call block device ioctls from the command line
+ SUBMENU=disc
+endef
+
+define Package/blockdev/description
+ The utility blockdev allows one to call block device ioctls from the
+command line
+endef
+
define Package/cal
$(call Package/util-linux/Default)
TITLE:=display a calendar
@@ -428,6 +439,11 @@ define Package/blkid/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/blkid $(1)/usr/sbin/
endef
+define Package/blockdev/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/blockdev $(1)/usr/sbin/
+endef
+
define Package/cal/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cal $(1)/usr/bin/
@@ -564,6 +580,7 @@ $(eval $(call BuildPackage,libmount))
$(eval $(call BuildPackage,libuuid))
$(eval $(call BuildPackage,agetty))
$(eval $(call BuildPackage,blkid))
+$(eval $(call BuildPackage,blockdev))
$(eval $(call BuildPackage,cal))
$(eval $(call BuildPackage,cfdisk))
$(eval $(call BuildPackage,dmesg))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140803/df4c1ddb/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list