08311e5e46d54aa207451813cc04bf23ba04c101
[openwrt/openwrt.git] / package / utils / nand-utils / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=nand-utils
9 PKG_REV:=d9076259b7f2654599bdf3416ec8ce0ad3b22610
10 PKG_VERSION:=1.5.2
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=git://git.infradead.org/mtd-utils.git
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_VERSION:=$(PKG_REV)
18
19 PKG_INSTALL:=1
20
21 PKG_LICENSE:=GPLv2
22 PKG_LICENSE_FILES:=
23
24 PKG_MAINTAINER:=Sergey Sergeev <adron@yapic.net>
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/nand-utils
29 TITLE:=Utilities for nand flash read/write/test
30 SECTION:=utils
31 CATEGORY:=Utilities
32 URL:=http://www.linux-mtd.infradead.org/
33 DEPENDS:=@NAND_SUPPORT
34 endef
35
36 define Package/nand-utils/description
37 Utilities for NAND devices.
38 endef
39
40 MAKE_FLAGS += \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 BUILDDIR="$(PKG_BUILD_DIR)" \
43 LDLIBS+="$(LIBGCC_S)" \
44 WITHOUT_XATTR=1 \
45 WITHOUT_LZO=1
46
47 define Package/nand-utils/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) \
50 $(PKG_INSTALL_DIR)/usr/sbin/{nanddump,nandwrite,nandtest,mtdinfo} $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,nand-utils))