2 # Copyright (C) 2009-2014 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
:=7d2839b8dede3ae368780364b4a07473d2303219
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
)
20 PKG_MIRROR_MD5SUM
:=69b68adcfcbe786584771e5978534ab4
24 PKG_BUILD_DEPENDS
:=util-linux liblzo zlib
29 PKG_MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
30 PKG_BUILD_DIR
:=$(BUILD_DIR
)/ubi-utils
/$(PKG_NAME
)-$(PKG_VERSION
)
32 include $(INCLUDE_DIR
)/package.mk
34 define Package
/ubi-utils
35 TITLE
:=Utilities for ubi
info/debug
38 URL
:=http
://www.linux-mtd.infradead.org
/
39 DEPENDS
:=@NAND_SUPPORT
42 define Package
/ubi-utils
/description
43 Utilities for manipulating memory technology devices.
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
48 BUILDDIR
="$(PKG_BUILD_DIR)" \
49 LDLIBS
+="$(LIBGCC_S)" \
53 define Package
/ubi-utils
/install
54 $(INSTALL_DIR
) $(1)/usr
/sbin
56 $(PKG_INSTALL_DIR
)/usr
/sbin
/{ubiattach
,ubicrc32
,ubiblock
,ubidetach
,ubiformat
,ubimkvol
} $(1)/usr
/sbin
/
58 $(PKG_INSTALL_DIR
)/usr
/sbin
/{ubinfo
,ubinize
,ubirename
,ubirmvol
,ubirsvol
,ubiupdatevol
} $(1)/usr
/sbin
/
62 $(eval
$(call BuildPackage
,ubi-utils
))