From a8801d8665bcc94c63a798e291a03c88f2af0215 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 27 Sep 2010 02:50:58 -0400 Subject: mtd-utils: unify flash_erase and flash_eraseall These have overlapping functionality, and while flash_eraseall supports newer 64bit ioctls, flash_erase does not. So rather than graft support onto flash_erase, merge the functionality of two into flash_erase so we only have to support one util from now on. A simple wrapper is provided to ease old flash_eraseall users into the new combined flash_erase util. Signed-off-by: Mike Frysinger Signed-off-by: Artem Bityutskiy --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d315f39..93661cb 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ endif SUBDIRS = lib ubi-utils mkfs.ubifs -TARGETS = ftl_format flash_erase flash_eraseall nanddump doc_loadbios \ +TARGETS = ftl_format flash_erase nanddump doc_loadbios \ ftl_check mkfs.jffs2 flash_lock flash_unlock flash_info \ flash_otp_info flash_otp_dump mtd_debug flashcp nandwrite nandtest \ jffs2dump \ @@ -17,6 +17,7 @@ TARGETS = ftl_format flash_erase flash_eraseall nanddump doc_loadbios \ rfddump rfdformat \ serve_image recv_image \ sumtool #jffs2reader +SCRIPTS = flash_eraseall SYMLINKS = @@ -53,8 +54,8 @@ LDLIBS_jffs2reader = -lz -llzo2 $(BUILDDIR)/lib/libmtd.a: subdirs_lib_all ; -install:: ${TARGETS} +install:: ${TARGETS} ${SCRIPTS} mkdir -p ${DESTDIR}/${SBINDIR} - install -m 0755 ${TARGETS} ${DESTDIR}/${SBINDIR}/ + install -m 0755 ${TARGETS} ${SCRIPTS} ${DESTDIR}/${SBINDIR}/ mkdir -p ${DESTDIR}/${MANDIR}/man1 gzip -9c mkfs.jffs2.1 > ${DESTDIR}/${MANDIR}/man1/mkfs.jffs2.1.gz -- cgit v1.2.3