Add witherspoon specific channel.yaml

channel.yaml keeps the info about number of available Ethernet
channels on the given machine.

Resolves openbmc/openbmc#3191

Change-Id: I904e02a96bb6f295c6456b8a8ba26e756c218df0
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host.bbappend b/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host.bbappend
index 748fa73..a314d16 100644
--- a/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host.bbappend
+++ b/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host.bbappend
@@ -2,4 +2,9 @@
 SRC_URI_append_witherspoon = " \
 	file://occ_sensors.hardcoded.yaml \
 	file://hwmon_sensors.hardcoded.yaml \
+	file://channel.yaml \
 	"
+
+EXTRA_OECONF_append_witherspoon = " \
+        CHANNEL_YAML_GEN=${WORKDIR}/channel.yaml \
+        "
diff --git a/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host/channel.yaml b/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host/channel.yaml
new file mode 100644
index 0000000..627f496
--- /dev/null
+++ b/meta-witherspoon/recipes-phosphor/ipmi/phosphor-ipmi-host/channel.yaml
@@ -0,0 +1,4 @@
+# Channel Number (must be unique) is the key
+1:
+  # ifName the ethernet device name (used in the dbus path)
+  ifName: eth0