From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1j1XPV-00078X-E4 for ptxdist@pengutronix.de; Tue, 11 Feb 2020 16:25:13 +0100 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23991783AbgBKPZNRZj4W (ORCPT ); Tue, 11 Feb 2020 16:25:13 +0100 Date: Tue, 11 Feb 2020 16:25:12 +0100 From: Ladislav Michl Message-ID: <20200211152512.GB40631@lenoch> MIME-Version: 1.0 Content-Disposition: inline Subject: [ptxdist] [PATCH] util-linux: optionally install flock List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Signed-off-by: Ladislav Michl --- 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