meta-ibm: override mctp default binding for IBM systems
This commit would override the default null binding with astlpc
binding for IBM p10 systems.
Tested:
- Built the rootfs of both tacoma & p10bmc and made sure the right
configuration of mctp is placed in /etc/default location.
Change-Id: I446be5ed1ceab44ba914a22d437d65f09b4a77f8
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
diff --git a/meta-ibm/recipes-phosphor/libmctp/libmctp_%.bbappend b/meta-ibm/recipes-phosphor/libmctp/libmctp_%.bbappend
index 989f1b0..48829ae 100644
--- a/meta-ibm/recipes-phosphor/libmctp/libmctp_%.bbappend
+++ b/meta-ibm/recipes-phosphor/libmctp/libmctp_%.bbappend
@@ -1,4 +1,16 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+install_mctp_configuration() {
+ install -d ${D}${sysconfdir}/default
+ install -m 0644 ${WORKDIR}/mctp ${D}${sysconfdir}/default/mctp
+}
+
SRC_URI:append:p10bmc = " file://mctp"
+do_install:append:p10bmc() {
+ install_mctp_configuration
+}
+
SRC_URI:append:witherspoon-tacoma = " file://mctp"
+do_install:append:witherspoon-tacoma() {
+ install_mctp_configuration
+}