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
|
2022-01-09 21:29:30 +00:00
|
|
|
PKG_VERSION:=2.1.4
|
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
|
2022-01-09 21:29:30 +00:00
|
|
|
PKG_SOURCE_URL:=https://infraroot.at/pub/mtd/
|
|
|
|
PKG_HASH:=2c6711d15d282c47cb3867b6857340597e26d332c238465134c602e5eef71b99
|
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
|
|
|
|
|
2020-12-06 08:36:05 +00:00
|
|
|
PKG_BUILD_DEPENDS:=util-linux
|
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:=
|
2022-09-03 16:19:37 +00:00
|
|
|
PKG_CPE_ID:=cpe:/a:mtd-utils_project:mtd-utils
|
2014-04-03 14:26:42 +00:00
|
|
|
|
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 \
|
2019-08-06 19:59:13 +00:00
|
|
|
--without-crypto \
|
2018-03-24 00:25:43 +00:00
|
|
|
--without-xattr \
|
2019-08-06 19:59:13 +00:00
|
|
|
--without-zstd \
|
2018-03-24 00:25:43 +00:00
|
|
|
--without-lzo
|
2014-04-03 14:26:42 +00:00
|
|
|
|
2018-03-30 13:32:07 +00:00
|
|
|
TARGET_CFLAGS += -ffunction-sections -fdata-sections
|
|
|
|
TARGET_LDFLAGS += -Wl,--gc-sections
|
|
|
|
|
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))
|