mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] util-linux: optionally install flock
@ 2020-02-11 15:25 Ladislav Michl
  0 siblings, 0 replies; only message in thread
From: Ladislav Michl @ 2020-02-11 15:25 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
 rules/util-linux-ng.in   | 11 +++++++++++
 rules/util-linux-ng.make |  3 +++
 2 files changed, 14 insertions(+)

diff --git a/rules/util-linux-ng.in b/rules/util-linux-ng.in
index e0ddf7550..1e59c0787 100644
--- a/rules/util-linux-ng.in
+++ b/rules/util-linux-ng.in
@@ -224,6 +224,17 @@ config UTIL_LINUX_NG_UMOUNT
 comment "BusyBox' umount is selected!"
 	depends on BUSYBOX_UMOUNT
 
+config UTIL_LINUX_NG_FLOCK
+	bool
+	prompt "flock"
+	depends on !BUSYBOX_FLOCK || ALLYES
+	help
+	  The flock utility manages flock(2) locks from within
+	  shell scripts or from the command line.
+
+comment "BusyBox' flock is selected!"
+	depends on BUSYBOX_FLOCK
+
 config UTIL_LINUX_NG_FSCK
 	bool
 	prompt "fsck"
diff --git a/rules/util-linux-ng.make b/rules/util-linux-ng.make
index e3d6fd15f..81fd9c66d 100644
--- a/rules/util-linux-ng.make
+++ b/rules/util-linux-ng.make
@@ -240,6 +240,9 @@ endif
 ifdef PTXCONF_UTIL_LINUX_NG_UMOUNT
 	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/umount)
 endif
+ifdef PTXCONF_UTIL_LINUX_NG_FLOCK
+	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/bin/flock)
+endif
 ifdef PTXCONF_UTIL_LINUX_NG_FSCK
 	@$(call install_copy, util-linux-ng, 0, 0, 0755, -, /usr/sbin/fsck)
 endif
-- 
2.25.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-11 15:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-11 15:25 [ptxdist] [PATCH] util-linux: optionally install flock Ladislav Michl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox