mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Dahl <ada@thorsis.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 3/3] mtd-utils: Add option for new tool 'lsmtd'
Date: Wed,  2 Oct 2019 15:06:01 +0200	[thread overview]
Message-ID: <20191002130601.16846-4-ada@thorsis.com> (raw)
In-Reply-To: <20191002130601.16846-1-ada@thorsis.com>

Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
 rules/mtd-utils.in   | 8 ++++++++
 rules/mtd-utils.make | 6 +++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/rules/mtd-utils.in b/rules/mtd-utils.in
index 6e829667a..8988ba116 100644
--- a/rules/mtd-utils.in
+++ b/rules/mtd-utils.in
@@ -119,6 +119,14 @@ config MTD_UTILS_FTL_FORMAT
 	  Utility to create an FTL (Flash Translation Layer) partition
 	  in a memory region
 
+config MTD_UTILS_LSMTD
+	bool
+	prompt "lsmtd"
+	help
+	  Pretty prints a list with hierarchical information about all
+	  available or the specified MTD and UBI devices. Tries to
+	  imitate the lsblk program from util-linux.
+
 config MTD_UTILS_JFFS2_DUMP
 	bool
 	prompt "jffs2dump"
diff --git a/rules/mtd-utils.make b/rules/mtd-utils.make
index 57b7691fc..7e2f3c13a 100644
--- a/rules/mtd-utils.make
+++ b/rules/mtd-utils.make
@@ -36,7 +36,7 @@ MTD_UTILS_CONF_OPT	:= \
 	--disable-unit-tests \
 	--disable-tests \
 	--disable-install-tests \
-	--disable-lsmtd \
+	--$(call ptx/endis, PTXCONF_MTD_UTILS_LSMTD)-lsmtd \
 	--$(call ptx/wwo, PTXCONF_MTD_UTILS_JFFS)-jffs \
 	--$(call ptx/wwo, PTXCONF_MTD_UTILS_UBIFS)-ubifs \
 	--without-xattr \
@@ -110,6 +110,10 @@ ifdef PTXCONF_MTD_UTILS_FTL_FORMAT
 	@$(call install_copy, mtd-utils, 0, 0, 0755, -, \
 		/usr/sbin/ftl_format)
 endif
+ifdef PTXCONF_MTD_UTILS_LSMTD
+	@$(call install_copy, mtd-utils, 0, 0, 0755, -, \
+		/usr/sbin/lsmtd)
+endif
 ifdef PTXCONF_MTD_UTILS_JFFS2_DUMP
 	@$(call install_copy, mtd-utils, 0, 0, 0755, -, \
 		/usr/sbin/jffs2dump)
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2019-10-02 13:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-02 13:05 [ptxdist] [PATCH 0/3] mtd-utils Alexander Dahl
2019-10-02 13:05 ` [ptxdist] [PATCH 1/3] host-mtd-utils: Switch to autoconf based build Alexander Dahl
2019-10-02 13:06 ` [ptxdist] [PATCH 2/3] mtd-utils: version bump 2.0.2 -> 2.1.1 Alexander Dahl
2019-10-02 17:06   ` Ladislav Michl
2019-10-07  8:25     ` Alexander Dahl
2019-10-02 13:06 ` Alexander Dahl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191002130601.16846-4-ada@thorsis.com \
    --to=ada@thorsis.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox