mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
------------------------------------------------------------------------------- * dd9f464 imagewrite: Avoid double error messages * eee1e57 imagewrite: Fix bug with not failing if last EB does not fit * 9681f16 imagewrite: Add trail-ff option, refs #8626 * f0fc7c5 Revert "testing" ------------------------------------------------------------------------------- commit dd9f464eced6af7d5e6a4a920b727421229310f4 Author: Mats Karrman <mats@southpole.se> Date: 2016-02-19 14:32:16 +0100 imagewrite: Avoid double error messages Base directory -> / imagewrite.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) ------------------------------------------------------------------------------- commit eee1e578789c309151eb2c58af57b7df9024612a Author: Mats Karrman <mats@southpole.se> Date: 2016-02-18 17:31:38 +0100 imagewrite: Fix bug with not failing if last EB does not fit Base directory -> / imagewrite.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ------------------------------------------------------------------------------- commit 9681f16d36bdc660434fb7fad85897c62e8ab858 Author: Mats Karrman <mats@southpole.se> Date: 2016-02-18 17:12:13 +0100 imagewrite: Add trail-ff option, refs #8626 Base directory -> / imagewrite.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) ------------------------------------------------------------------------------- commit f0fc7c5d6a8dda8ffa6509f8e79dee73fc757870 Author: Mats Karrman <mats@southpole.se> Date: 2016-02-18 15:47:35 +0100 Revert "testing" This reverts commit fb18f98c0eb82568b94808b7ab662937624b393d. Base directory -> / hej.txt | 1 - 1 file changed, 1 deletion(-) -------------------------------------------------------------------------------
123 lines
2.2 KiB
Makefile
123 lines
2.2 KiB
Makefile
#
|
|
# Copyright (C) 2009-2010 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=mtd-utils
|
|
PKG_VERSION:=1.5.1
|
|
PKG_RELEASE:=3
|
|
PKG_INSTALL:=1
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=dd9f464eced6af7d5e6a4a920b727421229310f4
|
|
PKG_SOURCE_URL:=http://public.inteno.se:/mtd-utils
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
FILES:= \
|
|
docfdisk \
|
|
doc_loadbios \
|
|
flashcp \
|
|
flash_erase \
|
|
flash_lock \
|
|
flash_otp_dump \
|
|
flash_otp_info \
|
|
flash_otp_lock \
|
|
flash_otp_write \
|
|
flash_unlock \
|
|
ftl_check \
|
|
ftl_format \
|
|
imagewrite \
|
|
jffs2dump \
|
|
jffs2reader \
|
|
mkfs.jffs2 \
|
|
mtd_debug \
|
|
nanddump \
|
|
nandtest \
|
|
nandwrite \
|
|
nftldump \
|
|
nftl_format \
|
|
recv_image \
|
|
rfddump \
|
|
rfdformat \
|
|
serve_image \
|
|
sumtool
|
|
|
|
ifneq ($(CONFIG_LINUX_2_4),y)
|
|
FILES += \
|
|
mkfs.ubifs \
|
|
mtdinfo \
|
|
ubiattach \
|
|
ubiblock \
|
|
ubicrc32 \
|
|
ubidetach \
|
|
ubiformat \
|
|
ubimkvol \
|
|
ubinfo \
|
|
ubinize \
|
|
deubinize \
|
|
ubirename \
|
|
ubirmvol \
|
|
ubirsvol \
|
|
ubiupdatevol
|
|
endif
|
|
|
|
define PartGen
|
|
define Package/mtd-utils-$(subst _,-,$(1))
|
|
TITLE:=MTD $(1)
|
|
URL:=http://www.linux-mtd.infradead.org/
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
DEPENDS:=mtd-utils +zlib +liblzo +libuuid
|
|
endef
|
|
endef
|
|
|
|
define Package/mtd-utils
|
|
TITLE:=Utilities for flash info/debug
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
MENU:=1
|
|
endef
|
|
|
|
define Package/mtd-utils/description
|
|
Utilities for manipulating memory technology devices.
|
|
endef
|
|
|
|
define Package/mtd-utils/install
|
|
true
|
|
endef
|
|
|
|
$(foreach file,$(FILES),$(eval $(call PartGen,$(file))))
|
|
|
|
MAKE_FLAGS += \
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
BUILDDIR="$(PKG_BUILD_DIR)" \
|
|
LDLIBS+="$(LIBGCC_S)" \
|
|
WITHOUT_XATTR=1
|
|
|
|
ifeq ($(CONFIG_LINUX_2_4),y)
|
|
MAKE_FLAGS += \
|
|
SUBDIRS=""
|
|
endif
|
|
|
|
define PartInstall
|
|
define Package/mtd-utils-$(subst _,-,$(1))/install
|
|
$(INSTALL_DIR) \
|
|
$$(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) \
|
|
$(PKG_INSTALL_DIR)/usr/sbin/$(1) \
|
|
$$(1)/usr/sbin/
|
|
endef
|
|
endef
|
|
|
|
$(foreach file,$(FILES),$(eval $(call PartInstall,$(file))))
|
|
|
|
$(eval $(call BuildPackage,mtd-utils))
|
|
$(foreach file,$(FILES),$(eval $(call BuildPackage,mtd-utils-$(subst _,-,$(file)))))
|