rebase ipmitool to use upstream git
Upstream ipmitool has been under active development for a while now.
This includes adding the D-Bus interface to ipmitool as an option as
well as a mechanism to set the default interface. So now, building
ipmitool for openbmc is possible directly from upstream. The new patch
that is included in this commit has been pushed upstream and in under
review. It is needed to build in environments that don't have internet
access.
Tested-by: build ipmitool, run it on the BMC and see that it works
bitbake ipmitool; scp <>/ipmitool <....>:/tmp;
/tmp/ipmitool mc info
/tmp/ipmitool -h
...
Interfaces:
open Linux OpenIPMI Interface
imb Intel IMB Interface
lan IPMI v1.5 LAN Interface
lanplus IPMI v2.0 RMCP+ LAN Interface
serial-terminal Serial Interface, Terminal Mode
serial-basic Serial Interface, Basic Mode
dbus OpenBMC D-Bus interface [default]
Change-Id: I61a3dbee98d86d33e032319a6e9ec63da63dab4a
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/recipes-phosphor/ipmi/ipmitool/0001-create_pen_list-only-print-if-values-are-set.patch b/recipes-phosphor/ipmi/ipmitool/0001-create_pen_list-only-print-if-values-are-set.patch
new file mode 100644
index 0000000..c9b955d
--- /dev/null
+++ b/recipes-phosphor/ipmi/ipmitool/0001-create_pen_list-only-print-if-values-are-set.patch
@@ -0,0 +1,35 @@
+From 51f3c26190f91981e35671ac87bb716dac8a9b7f Mon Sep 17 00:00:00 2001
+From: Vernon Mauery <vernon.mauery@intel.com>
+Date: Wed, 27 Feb 2019 15:22:52 -0800
+Subject: [PATCH] create_pen_list: only print if values are set
+
+On a failed download of the PEN list, the create_pen_list script
+improperly printed an invalid entry of { , "" } causing the build to
+fail. The last line print must check that it has something to print or
+it will print the wrong thing.
+
+Partially resolves ipmitool/ipmitool#11
+
+Signed-off-by: Vernon Mauery <vernon.mauery@intel.com>
+---
+ lib/create_pen_list | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/lib/create_pen_list b/lib/create_pen_list
+index e2b44d2..81864ad 100755
+--- a/lib/create_pen_list
++++ b/lib/create_pen_list
+@@ -67,7 +67,9 @@ parse_pen_list() {
+ }
+
+ END {
+- print "{ " PEN ", \"" ENTERPRISE "\" },"
++ if(PEN) {
++ print "{ " PEN ", \"" ENTERPRISE "\" },"
++ }
+ }'
+ }
+
+--
+2.17.1
+