2014-04-03 14:26:42 +00:00
|
|
|
#
|
2014-06-15 19:34:51 +00:00
|
|
|
# Copyright (C) 2009-2014 OpenWrt.org
|
2014-04-03 14:26:42 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2016-07-06 08:32:07 +00:00
|
|
|
PKG_NAME:=mtd-utils
|
2018-03-24 00:25:43 +00:00
|
|
|
PKG_VERSION:=2.0.2
|
2016-07-06 08:32:07 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-04-03 14:26:42 +00:00
|
|
|
|
2018-03-24 00:25:43 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=ftp://ftp.infradead.org/pub/mtd-utils/
|
|
|
|
PKG_HASH:=fb3de61be8e932abb424e8ea3c30298f553d5f970ad158a737bb303bbf9660b8
|
2014-04-03 14:26:42 +00:00
|
|
|
|
|
|
|
PKG_INSTALL:=1
|
2018-03-24 00:25:43 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2014-04-03 14:26:42 +00:00
|
|
|
|
2017-01-10 10:09:56 +00:00
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
|
2017-07-08 20:51:34 +00:00
|
|
|
PKG_BUILD_DEPENDS:=util-linux lzo zlib
|
2014-04-03 14:26:42 +00:00
|
|
|
|
2014-11-03 09:56:44 +00:00
|
|
|
PKG_LICENSE:=GPLv2
|
2014-04-03 14:26:42 +00:00
|
|
|
PKG_LICENSE_FILES:=
|
|
|
|
|
2016-05-11 07:06:21 +00:00
|
|
|
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
2014-04-03 14:26:42 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2016-07-06 08:32:07 +00:00
|
|
|
define Package/mtd-utils/Default
|
2014-04-03 14:26:42 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
URL:=http://www.linux-mtd.infradead.org/
|
2014-06-11 12:59:30 +00:00
|
|
|
DEPENDS:=@NAND_SUPPORT
|
2014-04-03 14:26:42 +00:00
|
|
|
endef
|
|
|
|
|
2016-07-06 08:32:07 +00:00
|
|
|
define Package/ubi-utils
|
|
|
|
$(call Package/mtd-utils/Default)
|
|
|
|
TITLE:=Utilities for ubi info/debug
|
|
|
|
endef
|
|
|
|
|
2014-04-03 14:26:42 +00:00
|
|
|
define Package/ubi-utils/description
|
|
|
|
Utilities for manipulating memory technology devices.
|
|
|
|
endef
|
|
|
|
|
2016-07-06 08:32:07 +00:00
|
|
|
define Package/nand-utils
|
|
|
|
$(call Package/mtd-utils/Default)
|
2018-03-26 14:32:22 +00:00
|
|
|
TITLE:=Utilities for nand flash erase/read/write/test
|
2016-07-06 08:32:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/nand-utils/description
|
|
|
|
Utilities for NAND devices.
|
|
|
|
endef
|
|
|
|
|
2018-03-24 00:25:43 +00:00
|
|
|
MAKE_FLAGS += LDLIBS+="$(LIBGCC_S)"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--disable-tests \
|
|
|
|
--without-xattr \
|
|
|
|
--without-lzo
|
2014-04-03 14:26:42 +00:00
|
|
|
|
2014-06-11 12:59:30 +00:00
|
|
|
define Package/ubi-utils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2014-04-03 14:26:42 +00:00
|
|
|
$(INSTALL_BIN) \
|
2014-06-11 12:59:30 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/sbin/{ubiattach,ubicrc32,ubiblock,ubidetach,ubiformat,ubimkvol} $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/sbin/{ubinfo,ubinize,ubirename,ubirmvol,ubirsvol,ubiupdatevol} $(1)/usr/sbin/
|
2014-04-03 14:26:42 +00:00
|
|
|
endef
|
|
|
|
|
2016-07-06 08:32:07 +00:00
|
|
|
define Package/nand-utils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) \
|
2018-03-26 14:32:22 +00:00
|
|
|
$(PKG_INSTALL_DIR)/usr/sbin/{flash_erase,nanddump,nandwrite,nandtest,mtdinfo} $(1)/usr/sbin/
|
2016-07-06 08:32:07 +00:00
|
|
|
endef
|
2014-04-03 14:26:42 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,ubi-utils))
|
2016-07-06 08:32:07 +00:00
|
|
|
$(eval $(call BuildPackage,nand-utils))
|