* [Buildroot] [PATCH 1/1] netsnmp: configurable MIB modules
@ 2013-01-30 2:14 Przemyslaw Wrzos
2013-03-24 13:40 ` Gustavo Zacarias
0 siblings, 1 reply; 3+ messages in thread
From: Przemyslaw Wrzos @ 2013-01-30 2:14 UTC (permalink / raw)
To: buildroot
From: przemyslaw <przemyslaw.wrzos@calyptech.com>
Make the MIB modules, which are included/excluded in the build, to be
configurable instead of being hard coded.
Signed-off-by: przemyslaw <przemyslaw.wrzos@calyptech.com>
---
package/netsnmp/Config.in | 16 +++++++++++++++-
package/netsnmp/netsnmp.mk | 4 ++--
2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/package/netsnmp/Config.in b/package/netsnmp/Config.in
index 108ab83..2e1da20 100644
--- a/package/netsnmp/Config.in
+++ b/package/netsnmp/Config.in
@@ -1,4 +1,4 @@
-config BR2_PACKAGE_NETSNMP
+menuconfig BR2_PACKAGE_NETSNMP
bool "netsnmp"
help
Suite of applications used to implement SNMP v1, SNMP v2c, and
@@ -15,6 +15,20 @@ config BR2_PACKAGE_NETSNMP_ENABLE_MIBS
Say yes if you want those MIB files installed on the target
and enable the code that parses the MIB files.
+config BR2_PACKAGE_NETSNMP_WITH_MIB_MODULES
+ string "Build with these MIB modules"
+ default "host ucd-snmp/dlmod"
+ depends on BR2_PACKAGE_NETSNMP
+ help
+ Specify which MIB modules to include.
+
+config BR2_PACKAGE_NETSNMP_WITHOUT_MIB_MODULES
+ string "Build without these MIB modules"
+ default "disman/event disman/schedule utilities"
+ depends on BR2_PACKAGE_NETSNMP
+ help
+ Specify which MIB modules to exclude.
+
config BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING
bool "Enable debugging code"
depends on BR2_PACKAGE_NETSNMP
diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk
index 2670cf3..a6912e5 100644
--- a/package/netsnmp/netsnmp.mk
+++ b/package/netsnmp/netsnmp.mk
@@ -20,8 +20,8 @@ NETSNMP_CONF_OPT = --with-persistent-directory=/var/lib/snmp --disable-static \
--enable-silent-libtool --enable-mfd-rewrites \
--with-sys-contact="root at localhost" \
--with-sys-location="Unknown" \
- --with-mib-modules="host ucd-snmp/dlmod" \
- --with-out-mib-modules="disman/event disman/schedule utilities" \
+ --with-mib-modules="$(call qstrip,$(BR2_PACKAGE_NETSNMP_WITH_MIB_MODULES))" \
+ --with-out-mib-modules="$(call qstrip,$(BR2_PACKAGE_NETSNMP_WITHOUT_MIB_MODULES))" \
--with-out-transports="Unix"
NETSNMP_MAKE = $(MAKE1)
NETSNMP_BLOAT_MIBS = BRIDGE DISMAN-EVENT DISMAN-SCHEDULE DISMAN-SCRIPT EtherLike RFC-1215 RFC1155-SMI RFC1213 SCTP SMUX
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] netsnmp: configurable MIB modules
2013-01-30 2:14 [Buildroot] [PATCH 1/1] netsnmp: configurable MIB modules Przemyslaw Wrzos
@ 2013-03-24 13:40 ` Gustavo Zacarias
2013-03-24 22:41 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Zacarias @ 2013-03-24 13:40 UTC (permalink / raw)
To: buildroot
On 01/29/2013 11:14 PM, Przemyslaw Wrzos wrote:
> From: przemyslaw <przemyslaw.wrzos@calyptech.com>
>
> Make the MIB modules, which are included/excluded in the build, to be
> configurable instead of being hard coded.
>
> Signed-off-by: przemyslaw <przemyslaw.wrzos@calyptech.com>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] netsnmp: configurable MIB modules
2013-03-24 13:40 ` Gustavo Zacarias
@ 2013-03-24 22:41 ` Peter Korsgaard
0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2013-03-24 22:41 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> On 01/29/2013 11:14 PM, Przemyslaw Wrzos wrote:
>> From: przemyslaw <przemyslaw.wrzos@calyptech.com>
>>
>> Make the MIB modules, which are included/excluded in the build, to be
>> configurable instead of being hard coded.
>>
>> Signed-off-by: przemyslaw <przemyslaw.wrzos@calyptech.com>
Gustavo> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Committed minus the config->menuconfig change, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-03-24 22:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-30 2:14 [Buildroot] [PATCH 1/1] netsnmp: configurable MIB modules Przemyslaw Wrzos
2013-03-24 13:40 ` Gustavo Zacarias
2013-03-24 22:41 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox