summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Neumann <neumann@teufel.de>2013-12-11 13:17:23 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-12-11 21:11:00 (GMT)
commitf2a0fa9378fd03268c8d39338aa74ee2581cd01c (patch)
treee8df33aa8597872f1e1569baaafef718d1fd8904
parentd037e4f8d1c23f9870a90992e7cddbcc045bfa7b (diff)
downloadbuildroot-f2a0fa9378fd03268c8d39338aa74ee2581cd01c.tar.gz
buildroot-f2a0fa9378fd03268c8d39338aa74ee2581cd01c.tar.bz2
wpa_supplicant: add option to enable syslog support
Add an option to enable support for sending debug messages to syslog instead of stdout. Signed-off-by: Sven Neumann <neumann@teufel.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/wpa_supplicant/Config.in5
-rw-r--r--package/wpa_supplicant/wpa_supplicant.mk7
2 files changed, 12 insertions, 0 deletions
diff --git a/package/wpa_supplicant/Config.in b/package/wpa_supplicant/Config.in
index 8b0b366..74145f1 100644
--- a/package/wpa_supplicant/Config.in
+++ b/package/wpa_supplicant/Config.in
@@ -49,6 +49,11 @@ config BR2_PACKAGE_WPA_SUPPLICANT_DBUS_INTROSPECTION
help
Add introspection support for new DBus control interface.
+config BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG
+ bool "Enable syslog support"
+ help
+ Enable support for sending debug messages to syslog
+
config BR2_PACKAGE_WPA_SUPPLICANT_WPS
bool "Enable support for WPS"
help
diff --git a/package/wpa_supplicant/wpa_supplicant.mk b/package/wpa_supplicant/wpa_supplicant.mk
index 4ae41c1..920f96a 100644
--- a/package/wpa_supplicant/wpa_supplicant.mk
+++ b/package/wpa_supplicant/wpa_supplicant.mk
@@ -116,6 +116,12 @@ endef
endif
+ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG),y)
+define WPA_SUPPLICANT_DEBUG_CONFIG
+ $(SED) 's/\(#\)\(CONFIG_DEBUG_SYSLOG.*\)/\2/' $(WPA_SUPPLICANT_CONFIG)
+endef
+endif
+
define WPA_SUPPLICANT_CONFIGURE_CMDS
cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG)
$(SED) 's/\(#\)\(CONFIG_HS20.*\)/\2/' $(WPA_SUPPLICANT_CONFIG)
@@ -133,6 +139,7 @@ define WPA_SUPPLICANT_CONFIGURE_CMDS
$(WPA_SUPPLICANT_LIBNL_CONFIG)
$(WPA_SUPPLICANT_DBUS_CONFIG)
$(WPA_SUPPLICANT_AP_CONFIG)
+ $(WPA_SUPPLICANT_DEBUG_CONFIG)
endef
define WPA_SUPPLICANT_BUILD_CMDS