meta-bletchley: phosphor-network: enable sync-mac

1. Enable sync-mac
2. add inventory mapping config

Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I441c00c22d7f1c0e3d0c9f83b9cc149007acd781
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/network/phosphor-network/config.json b/meta-facebook/meta-bletchley/recipes-phosphor/network/phosphor-network/config.json
new file mode 100644
index 0000000..52280a4
--- /dev/null
+++ b/meta-facebook/meta-bletchley/recipes-phosphor/network/phosphor-network/config.json
@@ -0,0 +1,3 @@
+{
+    "eth0":"ethernet"
+}
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/network/phosphor-network_%.bbappend b/meta-facebook/meta-bletchley/recipes-phosphor/network/phosphor-network_%.bbappend
new file mode 100644
index 0000000..ae025bb
--- /dev/null
+++ b/meta-facebook/meta-bletchley/recipes-phosphor/network/phosphor-network_%.bbappend
@@ -0,0 +1,10 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+PACKAGECONFIG:append = " sync-mac"
+SRC_URI:append = " file://config.json "
+FILES:${PN} += "${datadir}/network/*.json"
+
+do_install:append() {
+    install -d ${D}${datadir}/network/
+    install -m 0644 ${WORKDIR}/config.json ${D}${datadir}/network/
+}