diff options
author | Potin Lai <potin.lai@quantatw.com> | 2021-12-24 09:59:26 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2021-12-24 16:44:51 +0300 |
commit | a3021266199a66d65d5d43f8fbea0bc6ac81d834 (patch) | |
tree | 84ab9375ebf26d57027f28f5e4c6a7eef63961b1 /meta-facebook/meta-bletchley/recipes-phosphor | |
parent | 5015014321e9863440bc4e8fb69e581cea7242c1 (diff) | |
download | openbmc-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
Diffstat (limited to 'meta-facebook/meta-bletchley/recipes-phosphor')
-rw-r--r-- | meta-facebook/meta-bletchley/recipes-phosphor/network/phosphor-network/config.json | 3 | ||||
-rw-r--r-- | meta-facebook/meta-bletchley/recipes-phosphor/network/phosphor-network_%.bbappend | 10 |
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 0000000000..52280a4e67 --- /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 0000000000..ae025bbc6c --- /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/ +} |