From c26ce774a7209012c0505ee841d54898c6665e20 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 15 Mar 2017 12:12:12 +0100 Subject: Add lsmtd program This patch adds a program called "lsmtd". The program produces a pretty printed list of the hierarchy of UBI and MTD devices on a system. It tries to imitate the lsblk program from util-linux as closely as possible. A number of command line switches are available to fine tune what information should be exposed and in what output format. The goal is to have a simple way of displaying the complete MTD stack on a system in a human readable form instead of piecing details together from proc files and various UBI utilities. Signed-off-by: David Oberhollenzer --- misc-utils/Makemodule.am | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'misc-utils/Makemodule.am') diff --git a/misc-utils/Makemodule.am b/misc-utils/Makemodule.am index ce1c385..775925e 100644 --- a/misc-utils/Makemodule.am +++ b/misc-utils/Makemodule.am @@ -33,11 +33,15 @@ flashcp_SOURCES = misc-utils/flashcp.c flash_erase_SOURCES = misc-utils/flash_erase.c flash_erase_LDADD = libmtd.a +lsmtd_SOURCES = misc-utils/lsmtd.c misc-utils/lsmtd_scan.c +lsmtd_LDADD = libmtd.a libubi.a +lsmtd_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/misc-utils + MISC_BINS = \ ftl_format doc_loadbios ftl_check mtd_debug docfdisk \ serve_image recv_image flash_erase flash_lock \ flash_unlock flash_otp_info flash_otp_dump flash_otp_lock \ - flash_otp_write flashcp mtdpart + flash_otp_write flashcp mtdpart lsmtd MISC_SH = \ misc-utils/flash_eraseall @@ -46,7 +50,8 @@ MISC_EXTRA = \ misc-utils/MAKEDEV MISC_HEADER = \ - misc-utils/mcast_image.h + misc-utils/mcast_image.h \ + misc-utils/lsmtd.h EXTRA_DIST += $(MISC_HEADER) $(MISC_EXTRA) $(MISC_SH) -- cgit v1.2.3