2009-03-10 09:48:57 +00:00
|
|
|
#
|
2010-03-19 04:50:26 +00:00
|
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
2009-03-10 09:48:57 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=mtd-utils
|
2010-03-19 04:50:26 +00:00
|
|
|
PKG_REV:=a2d010f8fca904fffa3c6e5a5d148cc96a37a08a
|
2009-03-10 09:48:57 +00:00
|
|
|
PKG_VERSION:=20090227
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=git://git.infradead.org/mtd-utils.git
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
2010-03-19 04:50:26 +00:00
|
|
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
2009-03-10 09:48:57 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/mtd-utils
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Utilities for flash info/debug
|
|
|
|
URL:=http://www.linux-mtd.infradead.org/
|
|
|
|
DEPENDS:=+zlib +liblzo +libuuid
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/mtd-utils/description
|
|
|
|
Utilities for manipulating memory technology devices.
|
|
|
|
endef
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
BUILDDIR="$(PKG_BUILD_DIR)" \
|
2010-04-21 13:34:36 +00:00
|
|
|
LDLIBS+="$(LIBGCC_S)" \
|
2009-03-10 09:48:57 +00:00
|
|
|
WITHOUT_XATTR=1
|
|
|
|
|
2010-03-29 20:39:46 +00:00
|
|
|
ifeq ($(CONFIG_LINUX_2_4),y)
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
SUBDIRS=""
|
|
|
|
endif
|
|
|
|
|
2009-03-10 09:48:57 +00:00
|
|
|
define Package/mtd-utils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,mtd-utils))
|