source: packages/utils/mtd-utils/Makefile @ 28521

Last change on this file since 28521 was 28521, checked in by jow, 5 years ago

[packages] mtd-utils: bump pkg rev as well

File size: 2.2 KB
Line 
1#
2# Copyright (C) 2009-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mtd-utils
11PKG_REV:=a2d010f8fca904fffa3c6e5a5d148cc96a37a08a
12PKG_VERSION:=20090227
13PKG_RELEASE:=2
14PKG_INSTALL:=1
15
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17PKG_SOURCE_URL:=git://git.infradead.org/mtd-utils.git
18PKG_SOURCE_PROTO:=git
19PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20PKG_SOURCE_VERSION:=$(PKG_REV)
21
22include $(INCLUDE_DIR)/package.mk
23
24FILES:= \
25        ubiupdatevol \
26        flash_otp_info \
27        nandtest \
28        ubimkvol \
29        ubigen \
30        serve_image \
31        recv_image \
32        ubinfo \
33        ubirename \
34        mkpfi \
35        nandwrite \
36        flash_eraseall \
37        mkbootenv \
38        ftl_format \
39        nand2bin \
40        ubiattach \
41        nftl_format \
42        nanddump \
43        ubinize \
44        docfdisk \
45        ubimirror \
46        ubicrc32.pl \
47        ftl_check \
48        flashcp \
49        jffs2dump \
50        ubiformat \
51        ubidetach \
52        flash_lock \
53        bin2nand \
54        pfiflash \
55        mtd_debug \
56        pddcustomize \
57        flash_unlock \
58        doc_loadbios \
59        nftldump \
60        mkfs.jffs2 \
61        flash_info \
62        ubicrc32 \
63        ubirmvol \
64        unubi \
65        pfi2bin \
66        mkfs.ubifs \
67        sumtool \
68        flash_erase \
69        rfddump \
70        flash_otp_dump \
71        rfdformat
72
73define PartGen
74define Package/mtd-utils-$(subst _,-,$(1))
75  TITLE:=MTD $(1)
76  URL:=http://www.linux-mtd.infradead.org/
77  SECTION:=utils
78  CATEGORY:=Utilities
79  DEPENDS:=mtd-utils +zlib +liblzo +libuuid
80endef
81endef
82
83define Package/mtd-utils
84  TITLE:=Utilities for flash info/debug
85  SECTION:=utils
86  CATEGORY:=Utilities
87  MENU:=1
88endef
89
90define Package/mtd-utils/description
91  Utilities for manipulating memory technology devices.
92endef
93
94define Package/mtd-utils/install
95        true
96endef
97
98$(foreach file,$(FILES),$(eval $(call PartGen,$(file))))
99
100MAKE_FLAGS += \
101        DESTDIR="$(PKG_INSTALL_DIR)" \
102        BUILDDIR="$(PKG_BUILD_DIR)" \
103        LDLIBS+="$(LIBGCC_S)" \
104        WITHOUT_XATTR=1
105
106ifeq ($(CONFIG_LINUX_2_4),y)
107MAKE_FLAGS += \
108        SUBDIRS=""
109endif
110
111define PartInstall
112define Package/mtd-utils-$(subst _,-,$(1))/install
113        $(INSTALL_DIR) \
114                $$(1)/usr/sbin
115
116        $(INSTALL_BIN) \
117                $(PKG_INSTALL_DIR)/usr/sbin/$(1) \
118                $$(1)/usr/sbin/
119endef
120endef
121
122$(foreach file,$(FILES),$(eval $(call PartInstall,$(file))))
123
124$(eval $(call BuildPackage,mtd-utils))
125$(foreach file,$(FILES),$(eval $(call BuildPackage,mtd-utils-$(subst _,-,$(file)))))
Note: See TracBrowser for help on using the repository browser.