2 # Copyright (C) 2009-2013 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
:=ab8c6fb93ce9db0f09401c4b819b0b277dc00340
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=git
://git.infradead.org
/mtd-utils.git
18 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_SOURCE_VERSION
:=$(PKG_REV
)
23 PKG_BUILD_DEPENDS
:=util-linux
25 include $(INCLUDE_DIR
)/package.mk
31 flash_eraseall
:+mtd-utils-flash-erase \
43 mkfs.ubifs
:+libuuid
:+liblzo
:+zlib \
69 define Package
/mtd-utils-
$(subst _
,-,$(firstword $(subst :, ,$(1))))
70 TITLE
:=$(firstword $(subst :, ,$(1))) package from mtd-utils
71 URL
:=http
://www.linux-mtd.infradead.org
/
74 DEPENDS
:=mtd-utils
$(wordlist
2,$(words $(subst :, ,$(1))),$(subst :, ,$(1)))
78 define Package
/mtd-utils
79 TITLE
:=Utilities for flash
info/debug
82 URL
:=http
://www.linux-mtd.infradead.org
/
86 define Package
/mtd-utils
/description
87 Utilities for manipulating memory technology devices.
90 define Package
/mtd-utils
/install
94 $(foreach file
,$(FILES
),$(eval
$(call PartGen
,$(file
))))
97 DESTDIR
="$(PKG_INSTALL_DIR)" \
98 BUILDDIR
="$(PKG_BUILD_DIR)" \
99 LDLIBS
+="$(LIBGCC_S)" \
104 define Package
/mtd-utils-
$(subst _
,-,$(firstword $(subst :, ,$(1))))/install
105 $(INSTALL_DIR
) $$(1)/usr
/sbin
107 $(PKG_INSTALL_DIR
)/usr
/sbin
/$(firstword $(subst :, ,$(1))) \
112 $(foreach file
,$(FILES
),$(eval
$(call PartInstall
,$(file
))))
114 $(eval
$(call BuildPackage
,mtd-utils
))
115 $(foreach file
,$(FILES
),$(eval
$(call BuildPackage
,mtd-utils-
$(subst _
,-,$(firstword $(subst :, ,$(file
)))))))