mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 3/3] quota: e2fsprogs are not always needed
Date: Fri, 29 Mar 2019 11:26:05 +0100	[thread overview]
Message-ID: <20190329102605.8770-3-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20190329102605.8770-1-s.hauer@pengutronix.de>

e2fsprogs are only needed when the quotacheck tool is built with extfs
support. Add a new option for this and select e2fsprogs only when
necessary.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 rules/quota-tools.in   | 13 ++++++++++---
 rules/quota-tools.make |  3 ++-
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/rules/quota-tools.in b/rules/quota-tools.in
index 04b816208..818fc703c 100644
--- a/rules/quota-tools.in
+++ b/rules/quota-tools.in
@@ -3,9 +3,9 @@
 menuconfig QUOTA_TOOLS
 	tristate
 	prompt "quota tools                   "
-	select E2FSPROGS
-	select E2FSPROGS_LIBEXT2FS
-	select E2FSPROGS_LIBCOM_ERR
+	select E2FSPROGS if QUOTA_TOOLS_QUOTACHECK_EXT2
+	select E2FSPROGS_LIBEXT2FS if QUOTA_TOOLS_QUOTACHECK_EXT2
+	select E2FSPROGS_LIBCOM_ERR if QUOTA_TOOLS_QUOTACHECK_EXT2
 	help
 	  Tools and patches for the Linux Diskquota system as part of the
 	  Linux kernel (http://sourceforge.net/projects/linuxquota)
@@ -60,6 +60,13 @@ config QUOTA_TOOLS_QUOTACHECK
 	help
 	  scan a filesystem for disk usage, create, check and repair quota files
 
+config QUOTA_TOOLS_QUOTACHECK_EXT2
+	bool
+	prompt "Enable extfs support for quotacheck"
+	depends on QUOTA_TOOLS_QUOTACHECK
+	help
+	  Enable this option to get direct extfs support in quotacheck
+
 config QUOTA_TOOLS_CONVERTQUOTA
 	bool
 	prompt "install convertquota"
diff --git a/rules/quota-tools.make b/rules/quota-tools.make
index 57c00a383..976ba6765 100644
--- a/rules/quota-tools.make
+++ b/rules/quota-tools.make
@@ -36,7 +36,8 @@ QUOTA_TOOLS_AUTOCONF := $(CROSS_AUTOCONF_USR) \
 			--disable-netlink \
 			--disable-nls \
 			--disable-libwrap \
-			--disable-rpc
+			--disable-rpc \
+			--$(call ptx/endis, PTXCONF_QUOTA_TOOLS_QUOTACHECK_EXT2)-ext2direct
 
 # ----------------------------------------------------------------------------
 # Compile
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2019-03-29 10:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-29 10:26 [ptxdist] [PATCH 1/3] quota: Update to 4.04 Sascha Hauer
2019-03-29 10:26 ` [ptxdist] [PATCH 2/3] quota: directory should be quota-version Sascha Hauer
2019-03-29 10:26 ` Sascha Hauer [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=20190329102605.8770-3-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --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