ipmitool: add an option to enable/disable ipmishell
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Tue, 26 Apr 2016 12:02:40 +0000 (13:02 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 26 Apr 2016 20:37:35 +0000 (22:37 +0200)
Fixes:

  http://autobuild.buildroot.net/results/a62/a62e95619acb3d4d6be4425cf44a4628ac227494/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ipmitool/Config.in
package/ipmitool/ipmitool.mk

index e9b5374ea0d6ac72c1f3557ad0fbbf255a4a415d..1da0ace16f3a34aa7be79d5d4eb7ae8cc265cbdc 100644 (file)
@@ -23,4 +23,11 @@ config BR2_PACKAGE_IPMITOOL_IPMIEVD
        help
          IPMI event daemon for sending events to syslog
 
+config BR2_PACKAGE_IPMITOOL_IPMISHELL
+       bool "ipmishell"
+       select BR2_PACKAGE_NCURSES
+       select BR2_PACKAGE_READLINE
+       help
+         IPMI shell interface
+
 endif
index 60ef2f810f2a86074ed389777695432c3387ec24..a24658437be22188106ffab88d66416e5d8660d7 100644 (file)
@@ -20,8 +20,11 @@ else
 IPMITOOL_CONF_OPTS += --disable-intf-lanplus
 endif
 
-ifeq ($(BR2_PACKAGE_READLINE),y)
-IPMITOOL_DEPENDENCIES += readline
+ifeq ($(BR2_PACKAGE_IPMITOOL_IPMISHELL),y)
+IPMITOOL_DEPENDENCIES += ncurses readline
+IPMITOOL_CONF_OPTS += --enable-ipmishell
+else
+IPMITOOL_CONF_OPTS += --disable-ipmishell
 endif
 
 ifeq ($(BR2_PACKAGE_IPMITOOL_IPMIEVD),)