From 1dcfc04ae60296204d780f1eb122059b2f513035 Mon Sep 17 00:00:00 2001 From: Rod Whitby Date: Mon, 16 Jul 2007 03:55:31 +0000 Subject: [PATCH] devio: a utility to manipulate formatted data in mtd partitions (or other block devices) SVN-Revision: 7992 --- utils/devio/Makefile | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 utils/devio/Makefile diff --git a/utils/devio/Makefile b/utils/devio/Makefile new file mode 100644 index 000000000..3cee27204 --- /dev/null +++ b/utils/devio/Makefile @@ -0,0 +1,51 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=devio +PKG_VERSION:=1.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/devio +PKG_MD5SUM:= + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/devio + SECTION:=utils + CATEGORY:=Utilities + TITLE:=Correctly write to and read from mtd character (and other block) devices + DESCRIPTION:=\ + A command line program to correctly read (or write) a region of a block device.\\\ + Primary use is for extracting formatted data from MTD partitions. + URL:=http://sourceforge.net/projects/devio/ +endef + +define Build/Configure + (cd $(PKG_BUILD_DIR) ; \ + ./configure \ + ); +endef + +define Build/Compile + $(call Build/Compile/Default, \ + CFLAGS="$(EXTRA_CFLAGS)" \ + LDFLAGS="$(EXTRA_LDFLAGS)" \ + ) +endef + +define Package/devio/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/devio $(1)/usr/sbin +endef + +$(eval $(call BuildPackage,devio)) -- 2.30.2