meta-google: phosphor-ipmi-config: Update NCSI interface name
Our configuration assumes the NCSI interface in slot 1 is eth0,
let's update it to rewrite the interface name appropriately.
Change-Id: Iecaaeac2e0a2ebc33b3b19d456de85f4e9ec48de
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend b/meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend
index 0250bda..1afe115 100644
--- a/meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend
+++ b/meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend
@@ -42,6 +42,9 @@
exit 1
fi
gbmc_add_channel ${GBMCBR_IPMI_CHANNEL} gbmcbr
+ if [ -n "${GBMC_NCSI_IF_NAME}" ]; then
+ gbmc_add_channel 1 ${GBMC_NCSI_IF_NAME}
+ fi
# Set entity-map.json to empty json for gBMC by default.
# Each system will override it if needed.