meta-facebook: yosemite4: add mctp service conf

- Add script to setup mctp link and local address for each bus.
- Add service conf for running script before the service start,
  and make it has dependency with entity-manager.

Tested: tested on yv4 system.
Change-Id: I20ac5b9935acf7d805dceec029fe5b30374a5532
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/meta-facebook/meta-yosemite4/recipes-networking/mctp/mctp_%.bbappend b/meta-facebook/meta-yosemite4/recipes-networking/mctp/mctp_%.bbappend
new file mode 100644
index 0000000..6f87713
--- /dev/null
+++ b/meta-facebook/meta-yosemite4/recipes-networking/mctp/mctp_%.bbappend
@@ -0,0 +1,19 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
+
+
+SRC_URI += " \
+    file://setup-local-eid.conf \
+    file://mctp-config.sh \
+"
+
+FILES:${PN} += "${systemd_system_unitdir}/*"
+
+do_install:append () {
+    override_dir=${D}${systemd_system_unitdir}/mctpd.service.d
+    install -d ${D}${systemd_system_unitdir}/mctpd.service.d
+    install -d ${D}${datadir}/mctp
+    install -m 0644 ${WORKDIR}/setup-local-eid.conf \
+            ${override_dir}/setup-local-eid.conf
+    install -m 0755 ${WORKDIR}/mctp-config.sh \
+            ${D}${datadir}/mctp/
+}