Browse Source

package/ipmitool: add freeipmi optional dependency

freeipmi is an optional dependency which is enabled by default

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Fabrice Fontaine 3 years ago
parent
commit
8f6b346a34
1 changed files with 7 additions and 0 deletions
  1. 7 0
      package/ipmitool/ipmitool.mk

+ 7 - 0
package/ipmitool/ipmitool.mk

@@ -19,6 +19,13 @@ IPMITOOL_CPE_ID_VENDOR = ipmitool_project
 # 0013-fru-sdr-Fix-id_string-buffer-overflows.patch
 IPMITOOL_IGNORE_CVES += CVE-2020-5208
 
+ifeq ($(BR2_PACKAGE_FREEIPMI),y)
+IPMITOOL_DEPENDENCIES += freeipmi
+IPMITOOL_CONF_OPTS += --enable-intf-free
+else
+IPMITOOL_CONF_OPTS += --disable-intf-free
+endif
+
 ifeq ($(BR2_PACKAGE_IPMITOOL_LANPLUS),y)
 IPMITOOL_DEPENDENCIES += openssl
 IPMITOOL_CONF_OPTS += --enable-intf-lanplus