meta-ampere: mtmitchell: enable MCTP/PLDM
Enable MCTP in kernel support with Mt.Mitchell MCTP configuration.
Tested:
1. Check for mctpi2c3 in ifconfig command.
2. Check for mctpd.service service started and is in running state.
3. Check for pldmd.service service started and is in running state.
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: I699e9bc93ae5815b8454a8cc42ec22d4cfd735e1
diff --git a/meta-ampere/meta-common/recipes-phosphor/mctp/mctp_%.bbappend b/meta-ampere/meta-common/recipes-phosphor/mctp/mctp_%.bbappend
new file mode 100644
index 0000000..711913b
--- /dev/null
+++ b/meta-ampere/meta-common/recipes-phosphor/mctp/mctp_%.bbappend
@@ -0,0 +1,12 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+
+SRC_URI:append = " \
+ file://mctp-local.service \
+ "
+
+SYSTEMD_SERVICE:${PN} += "mctp-local.service"
+
+do_install:append() {
+ install -m 0644 ${WORKDIR}/mctp-local.service ${D}${systemd_system_unitdir}/
+}
+