Repository : ssh://git@open-mesh.org/openwrt-feed-devel
On branch : master
commit b759df59b3891fa454a1cba9400d7c2a7c32adad Author: Sven Eckelmann sven@narfation.org Date: Thu Mar 28 21:44:27 2019 +0100
batman-adv-devel: Make sysfs support optional
The sysfs files will be marked as deprecated in the near future. They are already replaced by the batadv generic netlink family. Add an Kconfig option to disable the sysfs support for users who want to test their tools or want to safe some space. This setting should currently still be enabled by default to keep backward compatible with legacy tools.
Signed-off-by: Sven Eckelmann sven@narfation.org
b759df59b3891fa454a1cba9400d7c2a7c32adad batman-adv-devel/Config.in | 24 ++++++++++++------------ batman-adv-devel/Makefile | 1 + 2 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/batman-adv-devel/Config.in b/batman-adv-devel/Config.in index 7ea862c..79beb3b 100644 --- a/batman-adv-devel/Config.in +++ b/batman-adv-devel/Config.in @@ -2,18 +2,6 @@ # Copyright (C) 2007-2019 B.A.T.M.A.N. contributors: # # Marek Lindner, Simon Wunderlich -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of version 2 of the GNU General Public -# License as published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see http://www.gnu.org/licenses/.
# # B.A.T.M.A.N meshing protocol @@ -98,6 +86,18 @@ config BATMAN_ADV_DEVEL_DEBUG buffer. The output is controlled via the batadv netdev specific log_level setting.
+config BATMAN_ADV_DEVEL_SYSFS + bool "batman-adv sysfs entries" + depends on PACKAGE_kmod-batman-adv-devel + default y + help + Say Y here if you want to enable batman-adv device configuration and + status interface through sysfs attributes. It is replaced by the + batadv generic netlink family but still used by various userspace + tools and scripts. + + If unsure, say Y. + config BATMAN_ADV_DEVEL_TRACING bool "B.A.T.M.A.N. tracing support" depends on PACKAGE_kmod-batman-adv-devel diff --git a/batman-adv-devel/Makefile b/batman-adv-devel/Makefile index bede8cc..de3cdb4 100644 --- a/batman-adv-devel/Makefile +++ b/batman-adv-devel/Makefile @@ -73,6 +73,7 @@ PKG_EXTRA_KCONFIG:= \ CONFIG_BATMAN_ADV_MCAST=$(if $(CONFIG_BATMAN_ADV_DEVEL_MCAST),y,n) \ CONFIG_BATMAN_ADV_NC=$(if $(CONFIG_BATMAN_ADV_DEVEL_NC),y,n) \ CONFIG_BATMAN_ADV_BATMAN_V=$(if $(CONFIG_BATMAN_ADV_DEVEL_BATMAN_V),y,n) \ + CONFIG_BATMAN_ADV_SYSFS=$(if $(CONFIG_BATMAN_ADV_DEVEL_SYSFS),y,n) \ CONFIG_BATMAN_ADV_TRACING=$(if $(CONFIG_BATMAN_ADV_DEVEL_TRACING),y,n) \
PKG_EXTRA_CFLAGS:= \