瀏覽代碼

netsnmp: ensure lm-sensors is available if enabled

The ucd-snmp/lmsensorsMib module uses lm-sensors, so ensure netsnmp is built
after lm-sensors if enabled.

As the list of mib modules to built is configured using a string option in
Kconfig, we cannot easily select lm-sensors from the netsnmp package - But
we can at least ensure it gets built before hand if enabled.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Peter Korsgaard 9 年之前
父節點
當前提交
fdbbff08bc
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      package/netsnmp/netsnmp.mk

+ 5 - 0
package/netsnmp/netsnmp.mk

@@ -67,6 +67,11 @@ ifeq ($(BR2_PACKAGE_PCIUTILS),y)
 NETSNMP_DEPENDENCIES += pciutils
 NETSNMP_DEPENDENCIES += pciutils
 endif
 endif
 
 
+# For ucd-snmp/lmsensorsMib
+ifeq ($(BR2_PACKAGE_LM_SENSORS),y)
+NETSNMP_DEPENDENCIES += lm-sensors
+endif
+
 ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_MIBS),y)
 ifneq ($(BR2_PACKAGE_NETSNMP_ENABLE_MIBS),y)
 NETSNMP_CONF_OPTS += --disable-mib-loading
 NETSNMP_CONF_OPTS += --disable-mib-loading
 NETSNMP_CONF_OPTS += --disable-mibs
 NETSNMP_CONF_OPTS += --disable-mibs