summaryrefslogtreecommitdiff
path: root/meta-google/recipes-google
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2021-02-18 01:33:38 +0300
committerWilliam A. Kennington III <wak@google.com>2021-02-18 02:29:07 +0300
commit577d20f2e23e0e7cfcf8a1dff685537e19c330f7 (patch)
tree09531887ddcd45706822c109ec5f63ccb6944071 /meta-google/recipes-google
parent857ccc500fc44edbe47272a3b21611ac8c6375b2 (diff)
downloadopenbmc-577d20f2e23e0e7cfcf8a1dff685537e19c330f7.tar.xz
meta-google: google-ipmi-sys: Add NCSI override
Change-Id: Ib5d9e1d60194d71c433003669c16f896964729ad Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'meta-google/recipes-google')
-rw-r--r--meta-google/recipes-google/ipmi/google-ipmi-sys_git.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-google/recipes-google/ipmi/google-ipmi-sys_git.bb b/meta-google/recipes-google/ipmi/google-ipmi-sys_git.bb
index f8af0a04c..c27248700 100644
--- a/meta-google/recipes-google/ipmi/google-ipmi-sys_git.bb
+++ b/meta-google/recipes-google/ipmi/google-ipmi-sys_git.bb
@@ -30,6 +30,9 @@ HOSTIPMI_PROVIDER_LIBRARY += "libsyscmds.so"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = "gbmc-psu-hardreset.target"
+CXXFLAGS_append_gbmc = '${@"" if not d.getVar("GBMC_NCSI_IF_NAME") else \
+ " -DNCSI_IPMI_CHANNEL=1 -DNCSI_IF_NAME=" + d.getVar("GBMC_NCSI_IF_NAME")}'
+
do_install_append() {
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${S}/gbmc-psu-hardreset.target ${D}${systemd_system_unitdir}