summaryrefslogtreecommitdiffstats
path: root/rules/net-snmp.make
diff options
context:
space:
mode:
authorAlexander Dahl <post@lespocky.de>2013-09-20 15:59:31 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-09-27 12:55:05 +0200
commit94327f1f0e9d74df4aba70753aa8bc661bb5c093 (patch)
treee98e49efbdec70c17abe9a7eb8954659ddb51119 /rules/net-snmp.make
parent292762fb6ebab8ae1bf8f5c2d67db88cb2165927 (diff)
downloadptxdist-94327f1f0e9d74df4aba70753aa8bc661bb5c093.tar.gz
ptxdist-94327f1f0e9d74df4aba70753aa8bc661bb5c093.tar.xz
net-snmp: added extra menu entries for mib modules
Previously the MIB modules to be compiled where specified in a space separated list only. Other packages depending on special modules could not easily set a dependency. Now there are some extra menu entries to be referenced by other packages and still the old list. Both are integrated at build time. Signed-off-by: Alexander Dahl <post@lespocky.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/net-snmp.make')
-rw-r--r--rules/net-snmp.make9
1 files changed, 8 insertions, 1 deletions
diff --git a/rules/net-snmp.make b/rules/net-snmp.make
index 91669766a..e38d16b3d 100644
--- a/rules/net-snmp.make
+++ b/rules/net-snmp.make
@@ -33,6 +33,12 @@ NET_SNMP_PATH := PATH=$(CROSS_PATH)
NET_SNMP_ENV := $(CROSS_ENV)
NET_SNMP_BINCONFIG_GLOB := net-snmp-config
+NET_SNMP_MIB_MODULES-y := $(call remove_quotes,$(PTXCONF_NET_SNMP_MIB_MODULES))
+NET_SNMP_MIB_MODULES- := $(call remove_quotes,$(PTXCONF_NET_SNMP_WITHOUT_MIB_MODULES))
+NET_SNMP_MIB_MODULES-$(PTXCONF_NET_SNMP_MIB_MODULES_AGENTX) += agentx
+NET_SNMP_MIB_MODULES-$(PTXCONF_NET_SNMP_MIB_MODULES_UCD_SNMP) += ucd_snmp
+NET_SNMP_MIB_MODULES-$(PTXCONF_NET_SNMP_MIB_MODULES_LM_SENSORS) += ucd-snmp/lmsensorsMib
+
#
# autoconf
#
@@ -42,7 +48,8 @@ NET_SNMP_AUTOCONF := \
--with-defaults \
--disable-manuals \
--without-openssl \
- --with-mib-modules=$(PTXCONF_NET_SNMP_MIB_MODULES) \
+ --with-mib-modules="$(NET_SNMP_MIB_MODULES-y)" \
+ --with-out-mib-modules="$(NET_SNMP_MIB_MODULES-)" \
--with-mibs=$(PTXCONF_NET_SNMP_DEFAULT_MIBS) \
--with-logfile=$(call remove_quotes,$(PTXCONF_NET_SNMP_LOGFILE)) \
--with-persistent-directory=$(call remove_quotes,$(PTXCONF_NET_SNMP_PERSISTENT_DIR)) \