From: jon@ringle.org
To: ptxdist@pengutronix.de
Cc: Jon Ringle <jringle@gridpoint.com>
Subject: [ptxdist] [PATCH] util-linux-ng: allow losetup to be optionally installed
Date: Wed, 25 Jun 2014 22:07:04 -0400 [thread overview]
Message-ID: <1403748424-6987-1-git-send-email-jon@ringle.org> (raw)
From: Jon Ringle <jringle@gridpoint.com>
Signed-off-by: Jon Ringle <jringle@gridpoint.com>
---
rules/util-linux-ng.in | 10 ++++++++++
rules/util-linux-ng.make | 5 ++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
index 249bc37..a98074e 100644
--- a/rules/util-linux-ng.in
+++ b/rules/util-linux-ng.in
@@ -129,6 +129,16 @@ config UTIL_LINUX_NG_SWAPON
comment "BusyBox' swapon is selected!"
depends on BUSYBOX_SWAPONOFF
+config UTIL_LINUX_NG_LOSETUP
+ bool
+ prompt "losetup"
+ depends on !BUSYBOX_LOSETUP || ALLYES
+ help
+ losetup is used to associate or detach a loop device with a regular file or block device, and to query the status of a loop device.
+
+comment "BusyBox' losetup is selected!"
+ depends on BUSYBOX_LOSETUP
+
config UTIL_LINUX_NG_MOUNT
bool
prompt "mount"
diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index ced9e98..c47a933 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -59,7 +59,7 @@ UTIL_LINUX_NG_CONF_OPT := \
--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_LIBMOUNT)-libmount \
--disable-deprecated-mount \
--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_MOUNT)-mount \
- --disable-losetup \
+ --$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_LOSETUP)-losetup \
--disable-cytune \
--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_FSCK)-fsck \
--$(call ptx/endis, PTXCONF_UTIL_LINUX_NG_PARTX_TOOLS)-partx \
@@ -167,6 +167,9 @@ ifdef PTXCONF_UTIL_LINUX_NG_SWAPON
@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /sbin/swapon)
@$(call install_link, util-linux-ng, swapon, /sbin/swapoff)
endif
+ifdef PTXCONF_UTIL_LINUX_NG_LOSETUP
+ @$(call install_copy, util-linux-ng, 0, 0, 0755, -, /sbin/losetup)
+endif
ifdef PTXCONF_UTIL_LINUX_NG_MOUNT
@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /bin/mount)
endif
--
1.8.5.4
--
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2014-06-26 2:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-26 2:07 jon [this message]
2014-06-27 11:43 ` Michael Olbrich
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=1403748424-6987-1-git-send-email-jon@ringle.org \
--to=jon@ringle.org \
--cc=jringle@gridpoint.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