summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPotin Lai <potin.lai@quantatw.com>2021-12-24 09:59:26 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-12-24 16:44:51 +0300
commita3021266199a66d65d5d43f8fbea0bc6ac81d834 (patch)
tree84ab9375ebf26d57027f28f5e4c6a7eef63961b1
parent5015014321e9863440bc4e8fb69e581cea7242c1 (diff)
downloadopenbmc-a3021266199a66d65d5d43f8fbea0bc6ac81d834.tar.xz
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
-rw-r--r--meta-facebook/meta-bletchley/recipes-phosphor/network/phosphor-network/config.json3
-rw-r--r--meta-facebook/meta-bletchley/recipes-phosphor/network/phosphor-network_%.bbappend10
2 files changed, 13 insertions, 0 deletions
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 000000000..52280a4e6
--- /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 000000000..ae025bbc6
--- /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/
+}