From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay03.ispgateway.de ([80.67.31.37]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SdGeM-0000I5-2g for ptxdist@pengutronix.de; Sat, 09 Jun 2012 10:03:59 +0200 Received: from [88.217.120.15] (helo=localhost) by smtprelay03.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1SdGeL-0007io-C5 for ptxdist@pengutronix.de; Sat, 09 Jun 2012 10:03:57 +0200 From: Bernhard Walle Date: Sat, 9 Jun 2012 10:03:53 +0200 Message-Id: <1339229034-18380-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH 1/2] wpa_supplicant: Allow disabling of wpa_cli installation Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Often wpa_cli is not needed in the final system. So make it possible to save a few bytes. Signed-off-by: Bernhard Walle --- rules/wpa_supplicant.in | 18 ++++++++++++++++++ rules/wpa_supplicant.make | 6 ++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/rules/wpa_supplicant.in b/rules/wpa_supplicant.in index 3f634ab..733a2b5 100644 --- a/rules/wpa_supplicant.in +++ b/rules/wpa_supplicant.in @@ -109,4 +109,22 @@ config WPA_SUPPLICANT_DRIVER_ROBOSWITCH Driver interface for the Broadcom RoboSwitch family untested +config WPA_SUPPLICANT_INSTALL_CLI + bool + prompt "Install wpa_cli" + default y + help + This option enables or disables installation of the wpa_cli tool in + the root file system. The tool allows controlling wpa_supplicant + if used in daemon mode. + + You need something like + + ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=network + update_config=1 + + in your /etc/wpa_supplicant.conf to make wpa_cli working. Often + it's not necessary to have wpa_cli in the final (non-development) + version of an Embedded System. + endif diff --git a/rules/wpa_supplicant.make b/rules/wpa_supplicant.make index 436caaa..d54c6c9 100644 --- a/rules/wpa_supplicant.make +++ b/rules/wpa_supplicant.make @@ -120,8 +120,10 @@ $(STATEDIR)/wpa_supplicant.targetinstall: @$(call install_copy, wpa_supplicant, 0, 0, 0755, -, \ /sbin/wpa_supplicant) - @$(call install_copy, wpa_supplicant, 0, 0, 0755, -, \ - /sbin/wpa_cli) + +ifdef PTXCONF_WPA_SUPPLICANT_INSTALL_CLI + @$(call install_copy, wpa_supplicant, 0, 0, 0755, -, /sbin/wpa_cli) +endif ifdef PTXCONF_WPA_SUPPLICANT_CTRL_IFACE_DBUS @$(call install_alternative, wpa_supplicant, 0, 0, 0644, \ -- 1.7.9.5 -- ptxdist mailing list ptxdist@pengutronix.de