diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2017-03-15 12:12:12 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2018-06-18 12:22:26 +0200 |
commit | c26ce774a7209012c0505ee841d54898c6665e20 (patch) | |
tree | 8067e5dbd7af0f50018cca26c9a6d10bd20a1bde /misc-utils/Makemodule.am | |
parent | f1feccec5ad848b4f763376480a006a9d58fa721 (diff) |
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'misc-utils/Makemodule.am')
-rw-r--r-- | misc-utils/Makemodule.am | 9 |
1 files changed, 7 insertions, 2 deletions
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) |