2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_REV
:=a2d010f8fca904fffa3c6e5a5d148cc96a37a08a
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=git
://git.infradead.org
/mtd-utils.git
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_SOURCE_VERSION
:=$(PKG_REV
)
22 include $(INCLUDE_DIR
)/package.mk
51 ifneq ($(CONFIG_LINUX_2_4
),y
)
78 define Package
/mtd-utils-
$(subst _
,-,$(1))
80 URL
:=http
://www.linux-mtd.infradead.org
/
83 DEPENDS
:=mtd-utils
+zlib
+liblzo
+libuuid
87 define Package
/mtd-utils
88 TITLE
:=Utilities for flash
info/debug
94 define Package
/mtd-utils
/description
95 Utilities for manipulating memory technology devices.
98 define Package
/mtd-utils
/install
102 $(foreach file
,$(FILES
),$(eval
$(call PartGen
,$(file
))))
105 DESTDIR
="$(PKG_INSTALL_DIR)" \
106 BUILDDIR
="$(PKG_BUILD_DIR)" \
107 LDLIBS
+="$(LIBGCC_S)" \
110 ifeq ($(CONFIG_LINUX_2_4
),y
)
116 define Package
/mtd-utils-
$(subst _
,-,$(1))/install
121 $(PKG_INSTALL_DIR
)/usr
/sbin
/$(1) \
126 $(foreach file
,$(FILES
),$(eval
$(call PartInstall
,$(file
))))
128 $(eval
$(call BuildPackage
,mtd-utils
))
129 $(foreach file
,$(FILES
),$(eval
$(call BuildPackage
,mtd-utils-
$(subst _
,-,$(file
)))))