mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
netsnmp: cleanup configure flags handling
No functional change, but cleaner. Remove the double --disable-manuals and move the debug handling together with the other optional configure flags. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
85235ba273
commit
252b5a1fc0
@ -50,14 +50,15 @@ else
|
|||||||
NETSNMP_CONF_OPT += --without-openssl
|
NETSNMP_CONF_OPT += --without-openssl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Docs
|
|
||||||
NETSNMP_CONF_OPT += --disable-manuals
|
|
||||||
|
|
||||||
ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_MIBS),y)
|
ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_MIBS),y)
|
||||||
NETSNMP_CONF_OPT += --disable-mib-loading
|
NETSNMP_CONF_OPT += --disable-mib-loading
|
||||||
NETSNMP_CONF_OPT += --disable-mibs
|
NETSNMP_CONF_OPT += --disable-mibs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING),y)
|
||||||
|
NETSNMP_CONF_OPT += --disable-debugging
|
||||||
|
endif
|
||||||
|
|
||||||
# Remove IPv6 MIBs if there's no IPv6
|
# Remove IPv6 MIBs if there's no IPv6
|
||||||
ifneq ($(BR2_INET_IPV6),y)
|
ifneq ($(BR2_INET_IPV6),y)
|
||||||
define NETSNMP_REMOVE_MIBS_IPV6
|
define NETSNMP_REMOVE_MIBS_IPV6
|
||||||
@ -67,11 +68,6 @@ endef
|
|||||||
NETSNMP_POST_INSTALL_TARGET_HOOKS += NETSNMP_REMOVE_MIBS_IPV6
|
NETSNMP_POST_INSTALL_TARGET_HOOKS += NETSNMP_REMOVE_MIBS_IPV6
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_DEBUGGING),y)
|
|
||||||
NETSNMP_CONF_OPT += --disable-debugging
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
define NETSNMP_REMOVE_BLOAT_MIBS
|
define NETSNMP_REMOVE_BLOAT_MIBS
|
||||||
for mib in $(NETSNMP_BLOAT_MIBS); do \
|
for mib in $(NETSNMP_BLOAT_MIBS); do \
|
||||||
rm -f $(TARGET_DIR)/usr/share/snmp/mibs/$$mib-MIB.txt; \
|
rm -f $(TARGET_DIR)/usr/share/snmp/mibs/$$mib-MIB.txt; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user