From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 08 Dec 2022 13:39:06 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1p3GB8-00El4X-0c for lore@lore.pengutronix.de; Thu, 08 Dec 2022 13:39:06 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1p3GB7-00022X-BJ; Thu, 08 Dec 2022 13:39:05 +0100 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1p3GAq-00022G-Pa; Thu, 08 Dec 2022 13:38:48 +0100 From: Philipp Zabel To: ptxdist@pengutronix.de Date: Thu, 8 Dec 2022 13:38:47 +0100 Message-Id: <20221208123847.1261596-1-p.zabel@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [ptxdist] [PATCH] util-linux: add an option to enable rfkill X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Philipp Zabel Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Add a configuration option UTIL_LINUX_RFKILL to enable the rfkill tool. Signed-off-by: Philipp Zabel --- rules/util-linux.in | 9 +++++++++ rules/util-linux.make | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/rules/util-linux.in b/rules/util-linux.in index 429473404a14..bf83def65f42 100644 --- a/rules/util-linux.in +++ b/rules/util-linux.in @@ -468,6 +468,15 @@ config UTIL_LINUX_READPROFILE comment "BusyBox' readprofile is selected!" depends on BUSYBOX_READPROFILE +config UTIL_LINUX_RFKILL + bool + prompt "rfkill" + select UTIL_LINUX_LIBSMARTCOLS + help + rfkill is a simple tool for accessing the Linux rfkill device + interface, which is used to enable and disable wireless networking + devices, typically WLAN, Bluetooth and mobile broadband. + config UTIL_LINUX_SWAPON bool prompt "swapon" diff --git a/rules/util-linux.make b/rules/util-linux.make index 0afa9ecdd938..c0f2dab369e4 100644 --- a/rules/util-linux.make +++ b/rules/util-linux.make @@ -116,7 +116,7 @@ UTIL_LINUX_CONF_OPT := \ --$(call ptx/endis, PTXCONF_UTIL_LINUX_IPCS)-ipcs \ --$(call ptx/endis, PTXCONF_UTIL_LINUX_IRQTOP)-irqtop \ --$(call ptx/endis, PTXCONF_UTIL_LINUX_LSIRQ)-lsirq \ - --disable-rfkill \ + --$(call ptx/endis, PTXCONF_UTIL_LINUX_RFKILL)-rfkill \ --disable-scriptutils \ --disable-tunelp \ --disable-kill \ @@ -238,6 +238,7 @@ UTIL_LINUX_BIN-$(PTXCONF_UTIL_LINUX_MOUNTPOINT) += bin/mountpoint UTIL_LINUX_BIN-$(PTXCONF_UTIL_LINUX_NSENTER) += bin/nsenter UTIL_LINUX_BIN-$(PTXCONF_UTIL_LINUX_PIVOT_ROOT) += sbin/pivot_root UTIL_LINUX_BIN-$(PTXCONF_UTIL_LINUX_READPROFILE) += sbin/readprofile +UTIL_LINUX_BIN-$(PTXCONF_UTIL_LINUX_RFKILL) += sbin/rfkill UTIL_LINUX_BIN-$(PTXCONF_UTIL_LINUX_SWAPON) += sbin/swapoff sbin/swapon UTIL_LINUX_BIN-$(PTXCONF_UTIL_LINUX_SWITCH_ROOT) += sbin/switch_root UTIL_LINUX_BIN-$(PTXCONF_UTIL_LINUX_UMOUNT) += bin/umount -- 2.30.2