From: Luca Ceresoli Date: Wed, 31 Aug 2011 19:46:39 +0000 (+0200) Subject: netsnmp: allow to disable MIB files installation and MIB loading code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c83b37cccb51f89a40f69a64b7ffba2e8c6f0f5;p=buildroot.git netsnmp: allow to disable MIB files installation and MIB loading code Signed-off-by: Luca Ceresoli Reviewed-by: "Yann E. MORIN" Signed-off-by: Peter Korsgaard --- diff --git a/package/netsnmp/Config.in b/package/netsnmp/Config.in index 5a3e9aabce..431be2d383 100644 --- a/package/netsnmp/Config.in +++ b/package/netsnmp/Config.in @@ -6,3 +6,11 @@ config BR2_PACKAGE_NETSNMP http://net-snmp.sourceforge.net/ +config BR2_PACKAGE_NETSNMP_ENABLE_MIBS + bool "Install MIB files on target and enable MIB loading code" + default y + depends on BR2_PACKAGE_NETSNMP + help + The net-snmp package contains a selection of MIB files. + Say yes if you want those MIB files installed on the target + and enable the code that parses the MIB files. diff --git a/package/netsnmp/netsnmp.mk b/package/netsnmp/netsnmp.mk index a44f3feef1..05d8db74f4 100644 --- a/package/netsnmp/netsnmp.mk +++ b/package/netsnmp/netsnmp.mk @@ -43,6 +43,11 @@ ifneq ($(BR2_HAVE_DOCUMENTATION),y) NETSNMP_CONF_OPT += --disable-manuals endif +ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_MIBS),y) + NETSNMP_CONF_OPT += --disable-mib-loading + NETSNMP_CONF_OPT += --disable-mibs +endif + # Remove IPv6 MIBs if there's no IPv6 ifneq ($(BR2_INET_IPV6),y) define NETSNMP_REMOVE_MIBS_IPV6