diff options
author | David Cobbley <david.j.cobbley@linux.intel.com> | 2017-11-22 03:17:40 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-01-05 23:29:13 +0300 |
commit | f923652615aacb0ae818851f374233aa50ea423d (patch) | |
tree | d003967360820364c76ef522c9266f745696388c /meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb | |
parent | 71e13bc4e698dd0e0f03c41b45e8c5c0744e61be (diff) | |
download | openbmc-f923652615aacb0ae818851f374233aa50ea423d.tar.xz |
Get Device ID - JSON
This commit adds the required json file to use get device ID with a JSON
file in the rootfs instead of a yaml file.
Change-Id: Iff7b5caa432e2e8cac169000940e386e83ad9417
Signed-off-by: David Cobbley <david.j.cobbley@linux.intel.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb index bd9cdd25b3..583c0b12c0 100644 --- a/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb +++ b/meta-phosphor/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb @@ -13,6 +13,7 @@ inherit phosphor-ipmi-host inherit pythonnative DEPENDS += "autoconf-archive-native" +DEPENDS += "nlohmann-json" DEPENDS += "obmc-targets" DEPENDS += "packagegroup-obmc-ipmid-providers" DEPENDS += "phosphor-dbus-interfaces" @@ -55,7 +56,9 @@ EXTRA_OECONF = " \ S = "${WORKDIR}/git" -SRC_URI += "file://merge_yamls.py" +SRC_URI += "file://merge_yamls.py \ + file://dev_id.json \ + " HOSTIPMI_PROVIDER_LIBRARY += "libapphandler.so" HOSTIPMI_PROVIDER_LIBRARY += "libsysintfcmds.so" @@ -65,6 +68,7 @@ NETIPMI_PROVIDER_LIBRARY += "libapphandler.so" FILES_${PN}_append = " ${libdir}/host-ipmid/lib*${SOLIBS}" FILES_${PN}_append = " ${libdir}/ipmid-providers/lib*${SOLIBS}" FILES_${PN}_append = " ${libdir}/net-ipmid/lib*${SOLIBS}" +FILES_${PN}_append = " ${datadir}/ipmi-providers/dev_id.json" FILES_${PN}-dev_append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la" # Soft Power Off @@ -102,5 +106,10 @@ python do_merge_sensors () { # Invoke the script and don't catch any resulting exception. subprocess.check_call(cmd) } +do_install_append(){ + install -d ${D}${datadir}/ipmi-providers + install -m 0644 -D ${WORKDIR}/dev_id.json \ + ${D}${datadir}/ipmi-providers/dev_id.json +} # python-pyyaml-native is installed by do_configure, so put this task after addtask merge_sensors after do_configure before do_compile |