mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Bernhard Walle <bernhard@bwalle.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/2] wpa_supplicant: Allow disabling of wpa_cli installation
Date: Sat,  9 Jun 2012 10:03:53 +0200	[thread overview]
Message-ID: <1339229034-18380-1-git-send-email-bernhard@bwalle.de> (raw)

Often wpa_cli is not needed in the final system. So make it possible to
save a few bytes.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 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

             reply	other threads:[~2012-06-09  8:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-09  8:03 Bernhard Walle [this message]
2012-06-09  8:03 ` [ptxdist] [PATCH 2/2] wpa_supplicant: Add /etc/wpa_supplicant.conf Bernhard Walle

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=1339229034-18380-1-git-send-email-bernhard@bwalle.de \
    --to=bernhard@bwalle.de \
    --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