]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
netsnmp: configurable MIB modules
authorprzemyslaw <przemyslaw.wrzos@calyptech.com>
Tue, 29 Jan 2013 16:14:44 +0000 (16:14 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 24 Mar 2013 22:40:56 +0000 (23:40 +0100)
Make the MIB modules, which are included/excluded in the build, to be
configurable instead of being hard coded.

[Peter: drop menuconfig]
Signed-off-by: przemyslaw <przemyslaw.wrzos@calyptech.com>
Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/netsnmp/Config.in
package/netsnmp/netsnmp.mk

index 108ab839360cab92540253550252da102e380c6b..d5056f928b8fde4801d55948165b8a2863671bde 100644 (file)
@@ -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
index 2670cf33b1c83c4ad44725a2c949f9915afb228f..a6912e5c973b801d4934f5ba36c817a684cf0ceb 100644 (file)
@@ -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@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